--- title: MetafieldDefinitionCreateUserErrorCode - GraphQL Admin description: >- Possible error codes that can be returned by `MetafieldDefinitionCreateUserError`. api_version: 2024-10 api_name: admin type: enum api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2024-10/enums/MetafieldDefinitionCreateUserErrorCode md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/enums/MetafieldDefinitionCreateUserErrorCode.txt --- # Metafield​Definition​Create​User​Error​Code enum Possible error codes that can be returned by `MetafieldDefinitionCreateUserError`. ## Valid values * BLANK The input value is blank. * DUPLICATE\_​OPTION A duplicate option. * GRANT\_​LIMIT\_​EXCEEDED The maximum limit of grants per definition type has been exceeded. * INCLUSION The input value isn't included in the list. * INVALID The input value is invalid. * INVALID\_​CAPABILITY The metafield definition capability is invalid. * INVALID\_​CHARACTER A field contains an invalid character. * INVALID\_​INPUT\_​COMBINATION The input combination is invalid. * INVALID\_​OPTION An invalid option. * LIMIT\_​EXCEEDED The maximum limit of definitions per owner type has exceeded. * OWNER\_​TYPE\_​LIMIT\_​EXCEEDED\_​FOR\_​AUTOMATED\_​COLLECTIONS You have reached the maximum allowed definitions for automated collections. * PINNED\_​LIMIT\_​REACHED The pinned limit has been reached for the owner type. * PRESENT The input value needs to be blank. * RESERVED\_​NAMESPACE\_​KEY This namespace and key combination is reserved for standard definitions. * RESOURCE\_​TYPE\_​LIMIT\_​EXCEEDED The definition limit per owner type has exceeded. * TAKEN The input value is already taken. * TOO\_​LONG The input value is too long. * TOO\_​SHORT The input value is too short. * TYPE\_​NOT\_​ALLOWED\_​FOR\_​CONDITIONS The definition type is not eligible to be used as collection condition. * UNSTRUCTURED\_​ALREADY\_​EXISTS This namespace and key combination is already in use for a set of your metafields. *** ## Fields * [Metafield​Definition​Create​User​Error.​code](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/MetafieldDefinitionCreateUserError#field-code) OBJECT An error that occurs during the execution of `MetafieldDefinitionCreate`. *** ## Map ### Fields with this enum * <-|[Metafield​Definition​Create​User​Error.code](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/MetafieldDefinitionCreateUserError#field-code)