Addition of shopifyCustomer model + full resync on store not backfilling some customerIds

We have only recently added the shopifyCustomer model to our app, and we have done a full re-sync on our development stores — however on our shopifyOrder model only a small percentage of orders have the customerId backfilled once this process has run. There doesn't seem to be any pattern as to which orders get backfilled and which don't — I thought maybe it was the 60-day order limit, but we've got orders from more than 6 months ago that have been backfilled with a customerId. url: platform.authentified.co
12 Replies
Chocci_Milk
Chocci_Milk7mo ago
Hello, Looking at your data, it actually looks like the orders that don't have customerIds are the ones that are newest Could I recommend that you start a sync with the following models? - shopifyCustomer - shopifyOrder Don't add a syncSince or other non-required fields
Dave
DaveOP7mo ago
No dice — ran that sync on all 3 shops and still heaps of orders not backfilled. In fact the only records that are being updated are shopifyOrderLineItem, no mention of shopifyCustomer or shopifyOrder Traceid: 8f133415bcdc0f84ae411b3bde093d99
Chocci_Milk
Chocci_Milk7mo ago
Could you please share what you filled out in the protected customer data access form? Could you also please try another sync and use the force flag? Here's an example sync call:
await api.shopifySync.run({
models: ["shopifyCustomer", "shopifyOrder"],
force: true,
shop: {
_link: "someId"
},
domain: "someDomain"
})
await api.shopifySync.run({
models: ["shopifyCustomer", "shopifyOrder"],
force: true,
shop: {
_link: "someId"
},
domain: "someDomain"
})
Dave
DaveOP7mo ago
Did that, still no luck — it has backfilled some, but it's only gone back to about 2023-12-23 and then stopped for some reason. ShopId is 13705159.
Chocci_Milk
Chocci_Milk7mo ago
Sorry, do you have the most recent data filled or no?
Dave
DaveOP7mo ago
Most recent yes but then it stops at December 2023 for some reason
Chocci_Milk
Chocci_Milk7mo ago
I'm not sure why that would be. Have you asked shopify if there was a limit to the all orders scope? I don't see why there should be
muchi
muchi7mo ago
hey Dave! just want to make sure- are you sure you passed the force: true in your run sync call? As I don't seem to see any forced syncs in your ShopifySync table
Dave
DaveOP7mo ago
Hi Jenny, yes I've been using force true on all of them
Chocci_Milk
Chocci_Milk7mo ago
@Dave, do you mind if I try running a sync for you?
Dave
DaveOP7mo ago
Go for it
muchi
muchi7mo ago
Hey Dave- just ran a force sync for you for your demo store and I can see the Customer values on the orders are now backfilled! You'll notice that the most recent Sync record (with Id: 1580) has a force value of true- while the other sync records do not. Just curious how you were passing the force value when triggering your syncs? Hm actually, the records I were looking at did backfill but it seems some didn't still. Let me take another look - nvm those records belong to different stores! You'll need to run a force sync for all your stores!

Did you find this page helpful?