Re: Custom Metafield definitions - error

Custom Metafield definitions - error

agiledigital
Shopify Partner
9 0 2

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:

 

Screenshot 2023-07-06 at 16.43.56.png

Replies 2 (2)

Lishan
Shopify Partner
13 1 4

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"
}
]
}
}
]
}

 

CDvDrAY3.png

Lishan
Shopify Partner
13 1 4

@agiledigital I tried it again. It's working now. Hope it works for you too.