Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I would like to use App-data metafields and tried it. But "Unexpected error" occurred when I executed `metafieldsSet` mutation according to this document.
The steps are:
I appreciate any help, thank you.
Solved! Go to the solution
This is an accepted solution.
Hi again Morishin,
It seems that this is a bug on our side, related to how app reserved namespaces are used with app data metafields. While we work on a fix for this, a workaround would be to specify a non-app reserverved namespace. (for example: "custom", and not "$app:foo" or "app--{YOURAPPID}--foo")
Thanks for flagging this,
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Morishin,
It does look like you're following the docs correctly, so I've reached out to our internal devs to see if there's an issue on our side. When you get this error is there any response error codes returned too?
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam,
Thank you for your response!
After adding a `code` field to `userErrors` to check the error code, I encountered an "Internal Server Error" from the server. 😢
This is an accepted solution.
Hi again Morishin,
It seems that this is a bug on our side, related to how app reserved namespaces are used with app data metafields. While we work on a fix for this, a workaround would be to specify a non-app reserverved namespace. (for example: "custom", and not "$app:foo" or "app--{YOURAPPID}--foo")
Thanks for flagging this,
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam,
I got it.
That workaround works for me! Thanks a lot.
Hello !
Any update on this ?
I have the same issue (getting "Unexpected system error. Try again later.") using a reserved namespace and while using a non-app reserved namespace work, it's clearly an issue regarding on critical parts like Checkout Functions (as stated here: https://shopify.dev/docs/apps/functions/input-output/variables-queries)
Thanks in advance !