# MetafieldDefinitionCreateUserError - admin-graphql - OBJECT Version: 2024-10 ## Description An error that occurs during the execution of `MetafieldDefinitionCreate`. ### Access Scopes ## Fields * [code](/docs/api/admin-graphql/2024-10/enums/MetafieldDefinitionCreateUserErrorCode): MetafieldDefinitionCreateUserErrorCode - The error code. * [elementIndex](/docs/api/admin-graphql/2024-10/scalars/Int): Int - The index of the array element that's causing the error. * [field](/docs/api/admin-graphql/2024-10/scalars/String): String - The path to the input field that caused the error. * [message](/docs/api/admin-graphql/2024-10/scalars/String): String! - The error message. ## Connections ## Related queries ## Related mutations * [metafieldDefinitionCreate](/docs/api/admin-graphql/2024-10/mutations/metafieldDefinitionCreate) Creates a metafield definition. Any metafields existing under the same owner type, namespace, and key will be checked against this definition and will have their type updated accordingly. For metafields that are not valid, they will remain unchanged but any attempts to update them must align with this definition. ## Related Unions ## Examples