# MetafieldsSetUserError - storefront - OBJECT Version: 2024-10 ## Description An error that occurs during the execution of `MetafieldsSet`. ### Access Scopes ## Fields * [code](/docs/api/storefront/2024-10/enums/MetafieldsSetUserErrorCode): MetafieldsSetUserErrorCode - The error code. * [elementIndex](/docs/api/storefront/2024-10/scalars/Int): Int - The index of the array element that's causing the error. * [field](/docs/api/storefront/2024-10/scalars/String): String - The path to the input field that caused the error. * [message](/docs/api/storefront/2024-10/scalars/String): String! - The error message. ## Connections ## Related queries ## Related mutations * [cartMetafieldsSet](/docs/api/storefront/2024-10/mutations/cartMetafieldsSet) Sets cart metafield values. Cart metafield values will be set regardless if they were previously created or not. Allows a maximum of 25 cart metafields to be set at a time. ## Related Unions ## Examples