Product Option Update User Error Code
Possible error codes that can be returned by .
Anchor to Valid valuesValid values
- Anchor to CANNOT_COMBINE_LINKED_AND_NONLINKED_OPTION_VALUESCANNOT_
COMBINE_ LINKED_ AND_ NONLINKED_ OPTION_ VALUES An option cannot have both metafield linked and nonlinked option values.
- Anchor to CANNOT_CREATE_VARIANTS_ABOVE_LIMITCANNOT_
CREATE_ VARIANTS_ ABOVE_ LIMIT The number of variants will be above the limit after this operation.
- Anchor to CANNOT_DELETE_ALL_OPTION_VALUES_IN_OPTIONCANNOT_
DELETE_ ALL_ OPTION_ VALUES_ IN_ OPTION Deleting all option values of an option is not allowed.
- Anchor to CANNOT_DELETE_VARIANT_WITHOUT_PERMISSIONCANNOT_
DELETE_ VARIANT_ WITHOUT_ PERMISSION Cannot update the option because it would result in deleting variants, and you don't have the required permissions.
- Anchor to CANNOT_LEAVE_OPTIONS_WITHOUT_VARIANTSCANNOT_
LEAVE_ OPTIONS_ WITHOUT_ VARIANTS An option cannot be left only with option values that are not linked to any variant.
- 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_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 INVALID_POSITIONINVALID_
POSITION The option position provided is not valid.
- Anchor to KEY_MISSING_IN_INPUTKEY_
MISSING_ IN_ INPUT A key is missing in the input.
- Anchor to LINKED_METAFIELD_DEFINITION_NOT_FOUNDLINKED_
METAFIELD_ DEFINITION_ NOT_ FOUND No valid metafield definition found for linked option.
- Anchor to LINKED_OPTION_UPDATE_MISSING_VALUESLINKED_
OPTION_ UPDATE_ MISSING_ VALUES Updating the linked_metafield of an option requires a linked_metafield_value for each option value.
- Anchor to LINKED_OPTIONS_NOT_SUPPORTED_FOR_SHOPLINKED_
OPTIONS_ NOT_ SUPPORTED_ FOR_ SHOP Linked options are currently not supported for this shop.
- Anchor to NO_KEY_ON_CREATENO_
KEY_ ON_ CREATE On create, this key cannot be used.
- Anchor to OPTION_ALREADY_EXISTSOPTION_
ALREADY_ EXISTS Option already exists.
- Anchor to OPTION_DOES_NOT_EXISTOPTION_
DOES_ NOT_ EXIST Option does not exist.
- Anchor to OPTION_LINKED_METAFIELD_ALREADY_TAKENOPTION_
LINKED_ METAFIELD_ ALREADY_ TAKEN An option linked to the provided metafield already exists.
- Anchor to OPTION_NAME_TOO_LONGOPTION_
NAME_ TOO_ LONG Option name is too long.
- Anchor to OPTION_VALUE_ALREADY_EXISTSOPTION_
VALUE_ ALREADY_ EXISTS Option value already exists.
- Anchor to OPTION_VALUE_CONFLICTING_OPERATIONOPTION_
VALUE_ CONFLICTING_ OPERATION Performing conflicting actions on an option value.
- Anchor to OPTION_VALUE_DOES_NOT_EXISTOPTION_
VALUE_ DOES_ NOT_ EXIST Option value does not exist.
- Anchor to OPTION_VALUE_HAS_VARIANTSOPTION_
VALUE_ HAS_ VARIANTS Option value with variants linked cannot be deleted.
- Anchor to OPTION_VALUE_NAME_TOO_LONGOPTION_
VALUE_ NAME_ TOO_ LONG Option value name is too long.
- Anchor to OPTION_VALUES_OVER_LIMITOPTION_
VALUES_ OVER_ LIMIT Option values count is over the allowed limit.
- 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 MANAGE 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.