Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to ProductOptionsCreateUserErrorCode

ProductOptionsCreateUserErrorCode

enum

Possible error codes that can be returned by ProductOptionsCreateUserError.

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.

•

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_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.

•

Each option must have a name specified.

Anchor to OPTION_POSITION_MISSINGOPTION_POSITION_MISSING
•

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

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.

•

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.

•

Product is suspended.


Was this section helpful?


Was this section helpful?