---
title: CollectionDuplicateUserErrorCode - GraphQL Admin
description: Possible error codes that can be returned by `CollectionDuplicateUserError`.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/enums/CollectionDuplicateUserErrorCode
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/enums/CollectionDuplicateUserErrorCode.md
api_name: admin
api_type: graphql
type: enum
---

# Collection​Duplicate​User​Error​Code

enum

Possible error codes that can be returned by `CollectionDuplicateUserError`.

## Valid values

* BLANK

  The collection title must not be blank.

* COLLECTION\_​NOT\_​FOUND

  The collection was not found. Please check the collection ID and try again.

* INVALID

  The duplicated collection isn't valid.

* TAKEN

  The URL handle generated from the new title is already in use. Please choose a different title.

* TOO\_​LONG

  The collection title or URL handle is too long.

* TOO\_​MANY\_​CONDITION\_​BACKED\_​SOURCES

  The shop has reached its limit of collection sources with conditions.

* TOO\_​MANY\_​SUB\_​COLLECTION\_​EXCLUSION\_​COLLECTIONS

  The shop has reached its limit of collections with sub-collection exclusions.

* TOO\_​MANY\_​SUB\_​COLLECTION\_​INCLUSION\_​COLLECTIONS

  The shop has reached its limit of collections with sub-collection inclusions.

***

## Fields

* [Collection​Duplicate​User​Error.code](https://shopify.dev/docs/api/admin-graphql/latest/objects/CollectionDuplicateUserError#field-CollectionDuplicateUserError.fields.code)

  OBJECT

  Errors related to collection duplication.

***

## Map

### Fields with this enum

* [Collection​Duplicate​User​Error.code](https://shopify.dev/docs/api/admin-graphql/latest/objects/CollectionDuplicateUserError#field-CollectionDuplicateUserError.fields.code)
