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

# Product​Variants​Bulk​Create​User​Error​Code

enum

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

## Valid values

* BARCODE\_​CHECKSUM\_​VALIDATION\_​FAILED

  Barcode checksum validation failed.

* BARCODE\_​VALUE\_​TOO\_​LONG

  Barcode value is too long.

* BLANK\_​BARCODE\_​VALUE

  Barcode value cannot be blank.

* CANNOT\_​SET\_​NAME\_​FOR\_​LINKED\_​OPTION\_​VALUE

  Cannot set name for an option value linked to a metafield.

* DUPLICATE\_​BARCODE\_​VALUE

  Duplicate barcode value within the same variant.

* GREATER\_​THAN\_​OR\_​EQUAL\_​TO

  Variant price must be greater than or equal to zero.

* INCOMPATIBLE\_​BARCODE\_​FIELDS

  Cannot provide both 'barcode' and 'barcodes' for the same variant.

* INVALID

  Invalid input detected.

* INVALID\_​BARCODE\_​CHARACTERS

  Barcode value contains invalid characters for its type.

* INVALID\_​BARCODE\_​LENGTH

  Barcode value has an invalid length for its type.

* INVALID\_​BARCODE\_​PREFIX

  Barcode value has an invalid prefix for its type.

* INVALID\_​BARCODE\_​SEPARATORS

  Barcode value contains invalid spaces or hyphens for its type.

* INVALID\_​BARCODE\_​TYPE

  Barcode type is not supported. Allowed barcode types are: upc, ean, isbn, gtin, asin, ns-pid.

* INVALID\_​INPUT

  Input is invalid.

* INVENTORY\_​QUANTITIES\_​LIMIT\_​EXCEEDED

  Inventory quantity input exceeds the limit of 50000. Consider using separate `inventorySetQuantities` mutations.

* LOCAL\_​CURRENCY\_​GIFT\_​CARD\_​PRICE\_​MUST\_​BE\_​ZERO

  Price must be 0 for variants of products with a gift card issuance currency.

* MUST\_​BE\_​FOR\_​THIS\_​PRODUCT

  Input must be for this product.

* NEED\_​TO\_​ADD\_​OPTION\_​VALUES

  Variant options are not enough.

* NEGATIVE\_​PRICE\_​VALUE

  Price cannot take a negative value.

* NO\_​KEY\_​ON\_​CREATE

  On create, this key cannot be used.

* NOT\_​DEFINED\_​FOR\_​SHOP

  Input is not defined for this shop.

* OPTION\_​VALUES\_​FOR\_​NUMBER\_​OF\_​UNKNOWN\_​OPTIONS

  Variant options are more than the product options.

* PRODUCT\_​DOES\_​NOT\_​EXIST

  Product does not exist.

* PRODUCT\_​SUSPENDED

  Product is suspended.

* SUBSCRIPTION\_​VIOLATION

  You reached the limit of available SKUs in your current plan.

* TOO\_​MANY\_​BARCODES

  Can only specify a maximum of 20 barcodes per variant.

* TOO\_​MANY\_​INVENTORY\_​LOCATIONS

  Inventory locations cannot exceed the allowed resource limit or 10.

* TRACKED\_​VARIANT\_​LOCATION\_​NOT\_​FOUND

  Quantity could not be set. The location was not found.

* UNSUPPORTED\_​COMBINED\_​LISTING\_​PARENT\_​OPERATION

  Operation is not supported for a combined listing parent product.

* VARIANT\_​ALREADY\_​EXISTS

  Variant already exists.

* VARIANT\_​ALREADY\_​EXISTS\_​CHANGE\_​OPTION\_​VALUE

  Variant options already exist. Please change the variant option(s).

***

## Fields

* [Product​Variants​Bulk​Create​User​Error.code](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariantsBulkCreateUserError#field-ProductVariantsBulkCreateUserError.fields.code)

  OBJECT

  Error codes for failed product variant bulk create mutations.

***

## Map

### Fields with this enum

* [Product​Variants​Bulk​Create​User​Error.code](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariantsBulkCreateUserError#field-ProductVariantsBulkCreateUserError.fields.code)
