FYI for others who run into this error, you can also get it if the metafield is a category metafield and the product has a category that doesn’t have that metafield available.
For example, this error can appear in Shopify Flow automations when the automation is trying to assign a value to a category metafield. Let’s say that you have a metafield “wheel size” that is available only on vehicles, and you’re trying to add a value for “wheel size” to a bike trailer. You will need to edit the metafield to make it available on the bike trailer category, otherwise the workflow will return that error.
thanks - saved me some time today this comment
tried including uncategorised on the metafield category assignments - but that didn’t seem to work
but changing metafield to apply to all products worked for me