# Saving Objects using the WithObjects() function in weaviate go client package

**URL:** <https://forum.weaviate.io/t/saving-objects-using-the-withobjects-function-in-weaviate-go-client-package/853>\
**Category:** Support\
**Tags:** developer-experience\
**Created:** [October 19, 2023, 9:52am UTC](https://forum.weaviate.io/t/saving-objects-using-the-withobjects-function-in-weaviate-go-client-package/853 "2023-10-19T09:52:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KarimNMG](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/karimnmg/32/591_2.png) [@KarimNMG](https://forum.weaviate.io/u/KarimNMG)\
**Post date:** [October 19, 2023, 9:52am UTC](https://forum.weaviate.io/t/saving-objects-using-the-withobjects-function-in-weaviate-go-client-package/853/1 "2023-10-19T09:52:05Z")

</div>

Does the WithObjects() Save, fail the transaction once, let’s say If an issue were happened during the save transaction, does it fail all the objects to be saved or, the processed objects were saved and the other will fail?

---

<div class="post-metadata">

**Author:** ![sebawita](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sebawita/32/5_2.png) [@sebawita](https://forum.weaviate.io/u/sebawita)\
**Post date:** [February 15, 2024, 6:05pm UTC](https://forum.weaviate.io/t/saving-objects-using-the-withobjects-function-in-weaviate-go-client-package/853/2 "2024-02-15T18:05:20Z")

</div>

If you use batch to insert objects.  
Each object succeeds and fails independently.

So, if you use batch to insert 1000 objects, and for some reason, object number 222 fails.  
You should see 999 objects in your collection - all objects except for 222.
