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
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
Thanks
You're going to need to remove the productMedia and productVariantMedia models, delete them, then readd the models in your connection
I don't even see those models

They're in your connection. If you don't need them. Make sure to remove them from your connection settings
I do need them, but I don't see the folders or files
Yes, if you don't have the folders, simply remove the models from your connection, then go back in and readd them
I tried that
it didn't recreate the files
it seems to think the files are there already
Are they there locally?
nope
I'll take a look shortly
Do you mind if I manipulate your application?
That’s fine
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
I am having a new isse now in this same app
the ai is telling me to add a script taf in index.html, that sounds not proper and didn't help

Thats correct, its required by shopify
So all gadget apps have that in the index.html?
All Gadget apps that use that particular frontend framework and are a Shopify app
Ok thx