---
title: CollectionError Object
seo:
  title: CollectionError Object
  description: CollectionError Object - no description
slug: api-reference/products/objects/collection-error
sidebar:
  label: CollectionError
search:
  tags:
    - API reference
    - Products
lastModified: '2026-04-13'
---

```graphql
type CollectionError {
  field: String
  message: String
  products: [ID!]
  code: CollectionErrorCode!
}
```


## Fields

### field [#field]

**`field`** · [`String`](/api-reference/miscellaneous/scalars/string)

Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
### message [#message]

**`message`** · [`String`](/api-reference/miscellaneous/scalars/string)

The error message.
### products [#products]

**`products`** · [`[ID!]`](/api-reference/miscellaneous/scalars/id)

List of products IDs which causes the error.
### code [#code]

**`code`** · [`CollectionErrorCode!`](/api-reference/products/enums/collection-error-code)

The error code.

## Used by

- [CollectionAddProducts (objects)](/api-reference/products/objects/collection-add-products)
- [CollectionBulkDelete (objects)](/api-reference/products/objects/collection-bulk-delete)
- [CollectionCreate (objects)](/api-reference/products/objects/collection-create)
- [CollectionDelete (objects)](/api-reference/products/objects/collection-delete)
- [CollectionRemoveProducts (objects)](/api-reference/products/objects/collection-remove-products)
- [CollectionReorderProducts (objects)](/api-reference/products/objects/collection-reorder-products)
- [CollectionUpdate (objects)](/api-reference/products/objects/collection-update)

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
