Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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
15 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
15 1 4

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