Possible error codes that can be returned by MediaUserError.


The input value is blank.

The input value is invalid.

value-invalidmediatype
INVALID_MEDIA_TYPE

Invalid media type.

value-maximumvariantmediapairsexceeded
MAXIMUM_VARIANT_MEDIA_PAIRS_EXCEEDED

Exceeded the maximum number of 100 variant-media pairs per mutation call.

value-mediacannotbemodified
MEDIA_CANNOT_BE_MODIFIED

Media cannot be modified. It is currently being modified by another operation.

value-mediadoesnotexist
MEDIA_DOES_NOT_EXIST

Media does not exist.

value-mediadoesnotexistonproduct
MEDIA_DOES_NOT_EXIST_ON_PRODUCT

Media does not exist on the given product.

value-mediaisnotattachedtovariant
MEDIA_IS_NOT_ATTACHED_TO_VARIANT

The specified media is not attached to the specified variant.

value-missingarguments
MISSING_ARGUMENTS

Missing arguments.

value-model3dthrottleexceeded
MODEL3D_THROTTLE_EXCEEDED

Model3d creation throttle was exceeded.

value-model3dvalidationerror
MODEL3D_VALIDATION_ERROR

Model validation failed.

value-nonreadymedia
NON_READY_MEDIA

Non-ready media are not supported.

value-productdoesnotexist
PRODUCT_DOES_NOT_EXIST

Product does not exist.

value-productmedialimitexceeded
PRODUCT_MEDIA_LIMIT_EXCEEDED

Exceeded the limit of media per product.

value-productvariantalreadyhasmedia
PRODUCT_VARIANT_ALREADY_HAS_MEDIA

Product variant already has attached media.

value-productvariantdoesnotexistonproduct
PRODUCT_VARIANT_DOES_NOT_EXIST_ON_PRODUCT

Variant does not exist on the given product.

value-productvariantspecifiedmultipletimes
PRODUCT_VARIANT_SPECIFIED_MULTIPLE_TIMES

Variant specified in more than one pair.

value-shopmedialimitexceeded
SHOP_MEDIA_LIMIT_EXCEEDED

Exceeded the limit of media per shop.

value-toomanymediaperinputpair
TOO_MANY_MEDIA_PER_INPUT_PAIR

Only one mediaId is allowed per variant-media input pair.

value-videothrottleexceeded
VIDEO_THROTTLE_EXCEEDED

Video creation throttle was exceeded.

value-videovalidationerror
VIDEO_VALIDATION_ERROR

Video validation failed.


Was this section helpful?

The error code.


Was this section helpful?
Map
MediaUserErrorCode

Fields from