Skip to content
Airtable upsert rep...
 
Notifications
Clear all

Airtable upsert repeatedly overwrites the same row

7 Posts
3 Users
0 Reactions
6 Views
Justin_Jackson
(@justin_jackson)
Posts: 4
Active Member
Topic starter
 

I've set up a GET API call to Circle.so to fetch new or updated subscription members. The API call is successful and returns 26 bundles in an array. I then added an Iterator module, which correctly splits the array, yielding 26 bundles with all the expected data. Following that, an Airtable Search Records module appears to function correctly, showing the expected 26 records in its output, matching my 26 subscribers. However, there's only one existing row in the Airtable record being searched. Finally, I'm using Airtable Upsert. I've mapped the Airtable Record ID ("ID") and then mapped all the Iterator output fields appropriately to the target table for the "Upsert" operation. Despite this, when I run the scenario, only Row 1 in the table gets updated, repeatedly. It processes all 26 records, modifying the information in Row 1 each time, until it completes all 26 iterations. The data from the last processed bundle is what remains. What might I be missing?

When asking your question, please include:

:footprints: The steps you have taken
:camera_flash: Relevant screenshots
:link: Any links you have
[ Code { "and": "JSON", "in" : "code block"} ]
:x: Exclude Personal Information.

 
Posted : 01/04/2023 6:11 pm
Runcorn
(@runcorn)
Posts: 16
Active Member
 

Could you please share a screenshot of the final module settings, specifically for the Upsert configuration?

 
Posted : 01/04/2023 6:56 pm
Justin_Jackson
(@justin_jackson)
Posts: 4
Active Member
Topic starter
 

You got it - thanks!

It seems like the Upsert operation isn't moving to the next row as expected; it's repeatedly overwriting the same record.

 
Posted : 01/04/2023 8:48 pm
Justin_Jackson
(@justin_jackson)
Posts: 4
Active Member
Topic starter
 

Another peculiar behavior I've observed: When I implement a router with a path for creating records and another for updating records, and then configure a filter based on whether an Airtable record ID exists or not, it seems to behave unexpectedly. Even after I delete all records in the table, the system acts as if the record still exists, directing the flow to the update branch. It appears to be checking for the existence of any record and then repeatedly updating that single record, rather than matching each iteration's ID against the table to determine if that specific record exists.

 
Posted : 01/04/2023 8:50 pm
Runcorn
(@runcorn)
Posts: 16
Active Member
 

This is unusual, and I'm not sure what's causing the issue with the scenario. Could you please examine the execution log to verify if the correct Record ID is being passed to the Upsert operation?

 
Posted : 01/04/2023 9:38 pm
Justin_Jackson
(@justin_jackson)
Posts: 4
Active Member
Topic starter
 

Yes, this is quite unusual. From what I can tell, the correct record ID is being supplied.

Regardless, the behavior of repeatedly overwriting the same record is strange; I suspect there's an issue with the filter configuration or something similar. Thanks for taking a look.

 
Posted : 02/04/2023 12:30 am
climate-company
(@climate-company)
Posts: 1
New Member
 

Hi, were you able to find a resolution for this? I'm encountering the identical issue right now…

 
Posted : 21/06/2023 7:18 pm
Share: