Skip to main content
Anchor to ProductOptionUpdateUserErrorCode

ProductOptionUpdateUserErrorCode

enum

Possible error codes that can be returned by ProductOptionUpdateUserError.

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.

The name provided is not valid.

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.

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.

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.


Was this section helpful?


Was this section helpful?