Anchor to section titled 'undefined'

ProductOptionsCreateUserErrorCode
enum

Possible error codes that can be returned by ProductOptionsCreateUserError.


value-cannotcombinelinkedmetafieldandoptionvalues
CANNOT_COMBINE_LINKED_METAFIELD_AND_OPTION_VALUES

Cannot combine linked metafield and option values.

value-cannotmakechangesifvariantismissingrequiredsku
CANNOT_MAKE_CHANGES_IF_VARIANT_IS_MISSING_REQUIRED_SKU

At least one of the product variants has invalid SKUs.

value-duplicatedoptionname
DUPLICATED_OPTION_NAME

Duplicated option name.

value-duplicatedoptionvalue
DUPLICATED_OPTION_VALUE

Duplicated option value.

value-duplicatelinkedoption
DUPLICATE_LINKED_OPTION

Cannot link multiple options to the same metafield.

value-invalidmetafieldvalueforlinkedoption
INVALID_METAFIELD_VALUE_FOR_LINKED_OPTION

Invalid metafield value for linked option.

value-invalidname
INVALID_NAME

The name provided is not valid.

value-linkedmetafielddefinitionnotfound
LINKED_METAFIELD_DEFINITION_NOT_FOUND

No valid metafield definition found for linked option.

value-linkedoptionsnotsupportedforshop
LINKED_OPTIONS_NOT_SUPPORTED_FOR_SHOP

Linked options are currently not supported for this shop.

value-missingmetafieldvaluesforlinkedoption
MISSING_METAFIELD_VALUES_FOR_LINKED_OPTION

Missing metafield values for linked option.

value-newoptionwithoutvalueforexistingvariants
NEW_OPTION_WITHOUT_VALUE_FOR_EXISTING_VARIANTS

Cannot create new options without values for all existing variants.

value-optionsoverlimit
OPTIONS_OVER_LIMIT

Options count is over the allowed limit.

value-optionalreadyexists
OPTION_ALREADY_EXISTS

Option already exists.

value-optionlinkedmetafieldalreadytaken
OPTION_LINKED_METAFIELD_ALREADY_TAKEN

An option linked to the provided metafield already exists.

value-optionnamemissing
OPTION_NAME_MISSING

Each option must have a name specified.

value-optionpositionmissing
OPTION_POSITION_MISSING

If specified, position field must be present in all option inputs.

value-optionvaluesmissing
OPTION_VALUES_MISSING

Each option must have at least one option value specified.

value-optionvaluesoverlimit
OPTION_VALUES_OVER_LIMIT

Option values count is over the allowed limit.

value-positionoutofbounds
POSITION_OUT_OF_BOUNDS

Position must be between 1 and the maximum number of options per product.

value-productdoesnotexist
PRODUCT_DOES_NOT_EXIST

Product does not exist.

value-productsuspended
PRODUCT_SUSPENDED

Product is suspended.

value-unsupportedcombinedlistingparentoperation
UNSUPPORTED_COMBINED_LISTING_PARENT_OPERATION

Operation is not supported for a combined listing parent product.


Was this section helpful?

The error code.


Was this section helpful?
Map
ProductOptionsCreateUserErrorCode