Product Options Create User Error Code
Possible error codes that can be returned by .
Anchor to Valid valuesValid values
- Anchor to CANNOT_COMBINE_LINKED_METAFIELD_AND_OPTION_VALUESCANNOT_
COMBINE_ LINKED_ METAFIELD_ AND_ OPTION_ VALUES Cannot combine linked metafield and option values.
- Anchor to CANNOT_MAKE_CHANGES_IF_VARIANT_IS_MISSING_REQUIRED_SKUCANNOT_
MAKE_ CHANGES_ IF_ VARIANT_ IS_ MISSING_ REQUIRED_ SKU At least one of the product variants has invalid SKUs.
- Anchor to DUPLICATE_LINKED_OPTIONDUPLICATE_
LINKED_ OPTION Cannot link multiple options to the same metafield.
- Anchor to DUPLICATED_OPTION_NAMEDUPLICATED_
OPTION_ NAME Duplicated option name.
- Anchor to DUPLICATED_OPTION_VALUEDUPLICATED_
OPTION_ VALUE Duplicated option value.
- Anchor to INVALID_METAFIELD_VALUE_FOR_LINKED_OPTIONINVALID_
METAFIELD_ VALUE_ FOR_ LINKED_ OPTION Invalid metafield value for linked option.
- Anchor to INVALID_NAMEINVALID_
NAME The name provided is not valid.
- Anchor to LINKED_METAFIELD_DEFINITION_NOT_FOUNDLINKED_
METAFIELD_ DEFINITION_ NOT_ FOUND No valid metafield definition found for linked option.
- Anchor to LINKED_METAFIELD_VALUE_WITHOUT_LINKED_OPTIONLINKED_
METAFIELD_ VALUE_ WITHOUT_ LINKED_ OPTION Cannot specify 'linkedMetafieldValue' for an option that is not linked to a metafield.
- Anchor to LINKED_OPTIONS_NOT_SUPPORTED_FOR_SHOPLINKED_
OPTIONS_ NOT_ SUPPORTED_ FOR_ SHOP Linked options are currently not supported for this shop.
- Anchor to MISSING_METAFIELD_VALUES_FOR_LINKED_OPTIONMISSING_
METAFIELD_ VALUES_ FOR_ LINKED_ OPTION Missing metafield values for linked option.
- Anchor to NEW_OPTION_WITHOUT_VALUE_FOR_EXISTING_VARIANTSNEW_
OPTION_ WITHOUT_ VALUE_ FOR_ EXISTING_ VARIANTS Cannot create new options without values for all existing variants.
- Anchor to OPTION_ALREADY_EXISTSOPTION_
ALREADY_ EXISTS Option already exists.
- Anchor to OPTION_LINKED_METAFIELD_ALREADY_TAKENOPTION_
LINKED_ METAFIELD_ ALREADY_ TAKEN An option linked to the provided metafield already exists.
- Anchor to OPTION_NAME_MISSINGOPTION_
NAME_ MISSING Each option must have a name specified.
- Anchor to OPTION_NAME_TOO_LONGOPTION_
NAME_ TOO_ LONG Option name is too long.
- Anchor to OPTION_POSITION_MISSINGOPTION_
POSITION_ MISSING If specified, position field must be present in all option inputs.
- Anchor to OPTION_VALUE_NAME_TOO_LONGOPTION_
VALUE_ NAME_ TOO_ LONG Option value name is too long.
- Anchor to OPTION_VALUES_MISSINGOPTION_
VALUES_ MISSING Each option must have at least one option value specified.
- Anchor to OPTION_VALUES_OVER_LIMITOPTION_
VALUES_ OVER_ LIMIT Option values count is over the allowed limit.
- Anchor to OPTIONS_OVER_LIMITOPTIONS_
OVER_ LIMIT Options count is over the allowed limit.
- Anchor to POSITION_OUT_OF_BOUNDSPOSITION_
OUT_ OF_ BOUNDS Position must be between 1 and the maximum number of options per product.
- Anchor to PRODUCT_DOES_NOT_EXISTPRODUCT_
DOES_ NOT_ EXIST Product does not exist.
- Anchor to PRODUCT_SUSPENDEDPRODUCT_
SUSPENDED Product is suspended.
- Anchor to TOO_MANY_VARIANTS_CREATEDTOO_
MANY_ VARIANTS_ CREATED The number of option values created with the CREATE strategy would exceed the variant limit.
- Anchor to UNSUPPORTED_COMBINED_LISTING_PARENT_OPERATIONUNSUPPORTED_
COMBINED_ LISTING_ PARENT_ OPERATION Operation is not supported for a combined listing parent product.