GGT_MISSING_REQUIRED_ACTION: An action to create, update records on the shopifyFile model wasn't giv

It seems like some of my shopify models are hidden, and I cannot debug this issue: GGT_MISSING_REQUIRED_ACTION: An action to create, update records on the shopifyFile model wasn't given and can't be inferred. trace id: 597cf1ba45f67a61a014790c034e317f
20 Replies
Chocci_Milk
Chocci_Milk5mo ago
It looks like someone on your team removed the shopifyFile model which is required for the shopifyProductMedia and shopifyProductVariantMedia models to work Let me see what I can do
Jay
JayOP5mo ago
Thanks
Chocci_Milk
Chocci_Milk5mo ago
You're going to need to remove the productMedia and productVariantMedia models, delete them, then readd the models in your connection
Jay
JayOP5mo ago
I don't even see those models
Jay
JayOP5mo ago
No description
Chocci_Milk
Chocci_Milk5mo ago
They're in your connection. If you don't need them. Make sure to remove them from your connection settings
Jay
JayOP5mo ago
I do need them, but I don't see the folders or files
Chocci_Milk
Chocci_Milk5mo ago
Yes, if you don't have the folders, simply remove the models from your connection, then go back in and readd them
Jay
JayOP5mo ago
I tried that it didn't recreate the files it seems to think the files are there already
Chocci_Milk
Chocci_Milk5mo ago
Are they there locally?
Jay
JayOP5mo ago
nope
Chocci_Milk
Chocci_Milk5mo ago
I'll take a look shortly Do you mind if I manipulate your application?
Jay
JayOP5mo ago
That’s fine
Chocci_Milk
Chocci_Milk5mo ago
I'm going to delete models and readd them Ok, the model is there now. If you had any custom logic on product create/update/delete, it was wiped. So make sure to make a copy before file syncing
Jay
JayOP5mo ago
I am having a new isse now in this same app
Uncaught Error: Expected app bridge to be defined in embedded context, but it was not. This is likely due to a missing script tag, see https://shopify.dev/docs/api/app-bridge-library
Uncaught Error: Expected app bridge to be defined in embedded context, but it was not. This is likely due to a missing script tag, see https://shopify.dev/docs/api/app-bridge-library
Jay
JayOP5mo ago
the ai is telling me to add a script taf in index.html, that sounds not proper and didn't help
No description
Chocci_Milk
Chocci_Milk5mo ago
Thats correct, its required by shopify
Jay
JayOP5mo ago
So all gadget apps have that in the index.html?
Chocci_Milk
Chocci_Milk5mo ago
All Gadget apps that use that particular frontend framework and are a Shopify app
Jay
JayOP5mo ago
Ok thx

Did you find this page helpful?