Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
I have a number of custom data metafields that do not have a definition, however when I attempt to add a definition (e.g. Single line text) to an existing metafield I get the following error when saving, which doesn't appear to be a validation error but more a generic error:
I am experiencing the same issue.
I checked the network API call and it shows the following error, screen shot also attached.
{
"errors": [
{
"message": "Variable $input of type MetafieldDefinitionInput! was provided invalid value for copyToOrder (Field is not defined on MetafieldDefinitionInput)",
"locations": [
{
"line": 1,
"column": 45
}
],
"extensions": {
"value": "{\"visibleToStorefrontApi\"=>false, \"useAsCollectionCondition\"=>false, \"useAsAdminFilter\"=>false, \"copyToOrder\"=>false, \"pin\"=>true, \"namespace\"=>\"global\", \"key\"=>\"test\", \"type\"=>\"json\", \"validations\"=>[], \"name\"=>\"Test\", \"description\"=>\"\", \"ownerType\"=>\"PRODUCT\", \"forceCreate\"=>true}",
"problems": [
{
"path": [
"copyToOrder"
],
"explanation": "Field is not defined on MetafieldDefinitionInput"
}
]
}
}
]
}