# Return format collection.batch.failed\_objects

**URL:** https://forum.weaviate.io/t/return-format-collection-batch-failed-objects/10616
**Category:** Support
**Tags:** python
**Created:** [March 1, 2025, 2:08pm UTC](https://forum.weaviate.io/t/return-format-collection-batch-failed-objects/10616 "2025-03-01T14:08:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Oasis](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/oasis/32/3709_2.png) [@Oasis](https://forum.weaviate.io/u/Oasis)
#### Post date: [March 1, 2025, 2:08pm UTC](https://forum.weaviate.io/t/return-format-collection-batch-failed-objects/10616/1 "2025-03-01T14:08:47Z")

</div>

Hi,  
I can not find any information of the exact return format of collection.batch.failed\_objects. I need to make sure that my application handles this error correctly and retries failed objects, but without knowing the exact format of the returned objects I can not do that. Can anyone help me out?

Thank you in advance!

---

<div class="post-metadata">

### Author: ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)
#### Post date: [March 1, 2025, 6:56pm UTC](https://forum.weaviate.io/t/return-format-collection-batch-failed-objects/10616/2 "2025-03-01T18:56:59Z")

</div>

hi @Oasis !!

Welcome to our community 🤗

You can provoke that error, like so:

```python
collection = client.collections.delete("Test")
client.collections.create("Test")

with client.batch.dynamic() as batch:
    batch.add_object(
        collection="Test",
        properties={"text": "object1"},
        vector=[1,2]
    )
    batch.add_object(
        collection="Test",
        properties={"text": "object2"}, 
        vector=[1,2,3]
    )

if client.batch.failed_objects:
    print(f"Found {len(client.batch.failed_objects)} failed objects" )
    print(client.batch.failed_objects)

```

this will be the output:

> Found 1 failed objects  
> [ErrorObject(message=‘inconsistent vector lengths: 3 != 2’, object\_=BatchObject(collection=‘Test’, properties={‘text’: ‘object1’}, references=None, uuid=‘378e10c3-e63a-44ab-bcaf-e41792e69b3c’, vector=[1, 2], tenant=None, index=0, retry\_count=0), original\_uuid=‘378e10c3-e63a-44ab-bcaf-e41792e69b3c’)]

By the way, check out this awesome recipe on batch ingestion retry:

> **[recipes/weaviate-features/batch/ingest-retry at main · weaviate/recipes](https://github.com/weaviate/recipes/tree/main/weaviate-features/batch/ingest-retry)**
>
> This repository shares end-to-end notebooks on how to use various Weaviate features and integrations! - weaviate/recipes

Let me know if that helps!

THanks!

---

<div class="post-metadata">

### Author: ![Dirk](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dirk/32/46_2.png) [@Dirk](https://forum.weaviate.io/u/Dirk)
#### Post date: [March 3, 2025, 8:29am UTC](https://forum.weaviate.io/t/return-format-collection-batch-failed-objects/10616/3 "2025-03-03T08:29:57Z")

</div>

Hey, all of our output is typed and will be stable.

You can import the definitions of the returned type here:

```auto
from weaviate.outputs.batch import ErrorObject

```

`collection.batch.failed_objects` returns `List[ErrorObject]`
