Anchor to section titled 'undefined'

ProductVariantsBulkCreateUserErrorCode
enum

Possible error codes that can be returned by ProductVariantsBulkCreateUserError.


value-cannotsetnameforlinkedoptionvalue
CANNOT_SET_NAME_FOR_LINKED_OPTION_VALUE

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

value-greaterthanorequalto
GREATER_THAN_OR_EQUAL_TO

Variant price must be greater than or equal to zero.

Invalid input detected.

value-invalidinput
INVALID_INPUT

Input is invalid.

value-mustbeforthisproduct
MUST_BE_FOR_THIS_PRODUCT

Input must be for this product.

value-needtoaddoptionvalues
NEED_TO_ADD_OPTION_VALUES

Variant options are not enough.

value-negativepricevalue
NEGATIVE_PRICE_VALUE

Price cannot take a negative value.

value-notdefinedforshop
NOT_DEFINED_FOR_SHOP

Input is not defined for this shop.

value-nokeyoncreate
NO_KEY_ON_CREATE

On create, this key cannot be used.

value-optionvaluesfornumberofunknownoptions
OPTION_VALUES_FOR_NUMBER_OF_UNKNOWN_OPTIONS

Variant options are more than the product options.

value-productdoesnotexist
PRODUCT_DOES_NOT_EXIST

Product does not exist.

value-subscriptionviolation
SUBSCRIPTION_VIOLATION

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

value-toomanyinventorylocations
TOO_MANY_INVENTORY_LOCATIONS

Inventory locations cannot exceed the allowed resource limit or 10.

value-trackedvariantlocationnotfound
TRACKED_VARIANT_LOCATION_NOT_FOUND

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

value-unsupportedcombinedlistingparentoperation
UNSUPPORTED_COMBINED_LISTING_PARENT_OPERATION

Operation is not supported for a combined listing parent product.

value-variantalreadyexists
VARIANT_ALREADY_EXISTS

Variant already exists.

value-variantalreadyexistschangeoptionvalue
VARIANT_ALREADY_EXISTS_CHANGE_OPTION_VALUE

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


Was this section helpful?

The error code.


Was this section helpful?
Map
ProductVariantsBulkCreateUserErrorCode