Skip to main content
Anchor to ProductSetUserErrorCode

ProductSetUserErrorCode

enum

Possible error codes that can be returned by ProductSetUserError.

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 CAPABILITY_VIOLATIONCAPABILITY_VIOLATION

The metafield violates a capability restriction.

Anchor to DUPLICATE_LINKED_OPTIONDUPLICATE_LINKED_OPTION

Cannot link multiple options to the same metafield.

Anchor to DUPLICATED_METAFIELD_VALUEDUPLICATED_METAFIELD_VALUE

Duplicated metafield value for linked option.

Anchor to DUPLICATED_OPTION_NAMEDUPLICATED_OPTION_NAME

Duplicated option name.

Anchor to DUPLICATED_OPTION_VALUEDUPLICATED_OPTION_VALUE

Duplicated option value.

Duplicated value.

Something went wrong, please try again.

Anchor to GIFT_CARD_ATTRIBUTE_CANNOT_BE_CHANGEDGIFT_CARD_ATTRIBUTE_CANNOT_BE_CHANGED

The product gift_card attribute cannot be changed after creation.

Anchor to GIFT_CARDS_NOT_ACTIVATEDGIFT_CARDS_NOT_ACTIVATED

Gift card products can only be created after they have been activated.

Handle already in use. Please provide a new handle.

The id field is not allowed if identifier is provided.

The identifier value does not match the value of the corresponding field in the input.

Input is not valid.

Metafield is not valid.

Anchor to INVALID_METAFIELD_VALUE_FOR_LINKED_OPTIONINVALID_METAFIELD_VALUE_FOR_LINKED_OPTION

Invalid metafield value for linked option.

Product is not valid.

Product variant is not valid.

Error processing request in the background job.

Anchor to LINKED_METAFIELD_DEFINITION_NOT_FOUNDLINKED_METAFIELD_DEFINITION_NOT_FOUND

No valid metafield definition found for linked option.

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_FIELD_REQUIREDMISSING_FIELD_REQUIRED

The input field corresponding to the identifier is required.

Resource matching the identifier was not found.

Anchor to OPTION_DOES_NOT_EXISTOPTION_DOES_NOT_EXIST

Option does not exist.

Anchor to OPTION_VALUE_DOES_NOT_EXISTOPTION_VALUE_DOES_NOT_EXIST

Option value does not exist.

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 over limit.

Options over limit.

Anchor to PRODUCT_DOES_NOT_EXISTPRODUCT_DOES_NOT_EXIST

Product does not exist.

Anchor to PRODUCT_OPTIONS_INPUT_MISSINGPRODUCT_OPTIONS_INPUT_MISSING

Must specify product options when updating variants.

Product is suspended.

Anchor to PRODUCT_VARIANT_DOES_NOT_EXISTPRODUCT_VARIANT_DOES_NOT_EXIST

Product variant does not exist.

Anchor to VARIANTS_INPUT_MISSINGVARIANTS_INPUT_MISSING

Must specify variants when updating options.

Number of product variants exceeds shop limit.


Was this section helpful?


Was this section helpful?