Possible error codes that can be returned by FilesUserError.


value-altvaluelimitexceeded
ALT_VALUE_LIMIT_EXCEEDED

The alt value exceeds the maximum limit of 512 characters.

value-blanksearch
BLANK_SEARCH

The search term must not be blank.

value-filenamealreadyexists
FILENAME_ALREADY_EXISTS

The provided filename already exists.

value-filedoesnotexist
FILE_DOES_NOT_EXIST

File does not exist.

value-filelocked
FILE_LOCKED

File has a pending operation.

The input value is invalid.

value-invalidduplicatemodefortype
INVALID_DUPLICATE_MODE_FOR_TYPE

Duplicate resolution mode is not supported for this file type.

value-invalidfilename
INVALID_FILENAME

The provided filename is invalid.

value-invalidfilenameextension
INVALID_FILENAME_EXTENSION

Invalid filename extension.

value-invalidimagesourceurl
INVALID_IMAGE_SOURCE_URL

Invalid image source url value provided.

value-invalidquery
INVALID_QUERY

Search query isn't supported.

value-mismatchedfilenameandoriginalsource
MISMATCHED_FILENAME_AND_ORIGINAL_SOURCE

Cannot create file with custom filename which does not match original source extension.

value-missingarguments
MISSING_ARGUMENTS

At least one argument is required.

value-missingfilenameforduplicatemodereplace
MISSING_FILENAME_FOR_DUPLICATE_MODE_REPLACE

Duplicate resolution mode REPLACE cannot be used without specifying filename.

value-nonimagemediapershoplimitexceeded
NON_IMAGE_MEDIA_PER_SHOP_LIMIT_EXCEEDED

Exceeded the limit of non-image media per shop.

value-nonreadystate
NON_READY_STATE

The file is not in the READY state.

value-productmedialimitexceeded
PRODUCT_MEDIA_LIMIT_EXCEEDED

Exceeded the limit of media per product.

value-referencetargetdoesnotexist
REFERENCE_TARGET_DOES_NOT_EXIST

The target resource does not exist.

value-toomanyarguments
TOO_MANY_ARGUMENTS

Specify one argument: search, IDs, or deleteAll.

value-toomanyfilereference
TOO_MANY_FILE_REFERENCE

Cannot add more than 10000 references to a file.

value-unacceptableasset
UNACCEPTABLE_ASSET

The file type is not supported.

value-unacceptabletrialasset
UNACCEPTABLE_TRIAL_ASSET

The file is not supported on trial accounts. Select a plan to upload this file.

value-unacceptableunverifiedtrialasset
UNACCEPTABLE_UNVERIFIED_TRIAL_ASSET

The file is not supported on trial accounts that have not validated their email. Either select a plan or verify the shop owner email to upload this file.

value-unsupportedfilereference
UNSUPPORTED_FILE_REFERENCE

The file type is not supported for referencing.

value-unsupportedmediatypeforfilenameupdate
UNSUPPORTED_MEDIA_TYPE_FOR_FILENAME_UPDATE

Filename update is only supported on Image and GenericFile.


Was this section helpful?

The error code.


Was this section helpful?
Map
FilesErrorCode

Fields from