Duplicate API identifier issues after updating app to Shopify 2025-04

Hello, I've just updated my gadget app to use Shopify Admin API 2025-04 from 2025-01 after reading all the docs on how it was a relatively large update with type changes and such. After updating I've got 4 errors in the shopifyLocation model for duplicate API indentifiers. I'm curious if anyone else has had this please and what the recommended action is? I could delete the non-shopify identifier however I'm concerned this may delete data or cause other sideeffects. Thanks
No description
No description
2 Replies
Chocci_Milk
Chocci_Milk2mo ago
Hello, Is still need to investigate why this happened. Could you please fork that environment so that I have something to go off of? Once that's complete, delete the duplicates that aren't marked with a Shopify bag next to the field Actually, it would be better if you look in your model schema files locally and remove the one that isn't under the shopify field array Also, please share the URL of your application so that I can find the environment
OllieEvans
OllieEvansOP2mo ago
I've just realised why this happens 🤦‍♂️ I was calling shopify manually to populate these additional fields when a location was created as the webhook didn't created these. But appears these are now in natively!

Did you find this page helpful?