When attempting to upsert a metaobject, which is owned by Shopify (toml), we get a few odd behaviours:
1.) The failure: Failed to upsert metaobject for discount 1186074067033: \[{"field":\["handle","type"\],"message":"No metaobject definition exists for type \\"app--9549316097-discount_summary\\"","code":"UNDEFINED_OBJECT_TYPE"}\]
2.) The metaobject definition exists in the admin ui.
3.) The metaobject list shows the incorrect number of instances of that metaobject.
We currently have this error occurring across 7-8 merchants (perhaps more), and they have all followed the same pattern:
1.) Created a metaobject of type app--9549316097-discount_summary
2.) Uninstalled the application with an existing metaobject instance
3.) Reinstalled the application - now they are in a bugged state
The issue is that half of the applications functionality depends on the metaobject(s) existing, and thus this breaks the experience.
I appreciate that this one may be quite difficult/complicated to solve from Shopify’s side, but it would be great to have a procedure to sort out existing instances of this error.