Possible error codes that can be returned by MarketUserError.


The input value is blank.

value-cannotaddcustomerdomain
CANNOT_ADD_CUSTOMER_DOMAIN

Can't add customer account domain to a market.

value-cannotaddregionstoprimarymarket
CANNOT_ADD_REGIONS_TO_PRIMARY_MARKET

Can't add regions to the primary market.

value-cannotaddwebpresencetoprimarymarket
CANNOT_ADD_WEB_PRESENCE_TO_PRIMARY_MARKET

Can't add the web presence to the primary market.

value-cannotdeleteonlyregion
CANNOT_DELETE_ONLY_REGION

Can't delete the only region in a market.

value-cannotdeleteprimarymarket
CANNOT_DELETE_PRIMARY_MARKET

Can't delete the primary market.

value-cannotdeleteprimarymarketwebpresence
CANNOT_DELETE_PRIMARY_MARKET_WEB_PRESENCE

Can't delete the primary market's web presence.

value-cannotdisableprimarymarket
CANNOT_DISABLE_PRIMARY_MARKET

Can't disable the primary market.

value-cannothavebothsubfolderanddomainwebpresences
CANNOT_HAVE_BOTH_SUBFOLDER_AND_DOMAIN_WEB_PRESENCES

Can't have both subfolder and domain web presences.

value-cannothavemultiplesubfolderspermarket
CANNOT_HAVE_MULTIPLE_SUBFOLDERS_PER_MARKET

Can't have multiple subfolder web presences per market.

value-cannothavesubfolderanddomain
CANNOT_HAVE_SUBFOLDER_AND_DOMAIN

Can't pass both subfolderSuffix and domainId.

value-cannotsetdefaultlocaletonull
CANNOT_SET_DEFAULT_LOCALE_TO_NULL

Can't set default locale to null.

value-disabledlanguage
DISABLED_LANGUAGE

The language isn't enabled on the store.

value-domainnotfound
DOMAIN_NOT_FOUND

Domain was not found.

value-duplicatelanguages
DUPLICATE_LANGUAGES

Duplicates found in languages.

The input value is invalid.

value-marketnotfound
MARKET_NOT_FOUND

The market wasn't found.

value-marketreachedwebpresencelimit
MARKET_REACHED_WEB_PRESENCE_LIMIT

Can't add another web presence to the market.

value-nolanguages
NO_LANGUAGES

No languages selected.

value-primarymarketmustuseprimarydomain
PRIMARY_MARKET_MUST_USE_PRIMARY_DOMAIN

The primary market must use the primary domain.

value-regionnotfound
REGION_NOT_FOUND

The market region wasn't found.

value-regionspecificlanguage
REGION_SPECIFIC_LANGUAGE

Cannot add region-specific language.

value-requiresdomainorsubfolder
REQUIRES_DOMAIN_OR_SUBFOLDER

One of subfolderSuffix or domainId is required.

value-requiresexactlyoneoption
REQUIRES_EXACTLY_ONE_OPTION

Exactly one input option is required.

value-shopreachedmarketslimit
SHOP_REACHED_MARKETS_LIMIT

Can't have more than 50 markets.

value-subfoldersuffixcannotbescriptcode
SUBFOLDER_SUFFIX_CANNOT_BE_SCRIPT_CODE

The subfolder suffix is invalid, please provide a different value.

value-subfoldersuffixmustcontainonlyletters
SUBFOLDER_SUFFIX_MUST_CONTAIN_ONLY_LETTERS

The subfolder suffix must contain only letters.

The input value is already taken.

The input value is too long.

The input value is too short.

value-unpublishedlanguage
UNPUBLISHED_LANGUAGE

The language isn't published to the store.

value-unsupportedcountryregion
UNSUPPORTED_COUNTRY_REGION

Can't add unsupported country or region.

value-webpresencenotfound
WEB_PRESENCE_NOT_FOUND

The market web presence wasn't found.


Was this section helpful?

The error code.


Was this section helpful?
Map
MarketUserErrorCode

Fields from