Help

Save the date! Join us on October 16 for our Product Ops launch event. Register here.

Re: Linked records not connected when creating new records

2885 4
cancel
Showing results for 
Search instead for 
Did you mean: 
Tobias_LGKR
7 - App Architect
7 - App Architect

Hi everyone,

I have been troubleshooting this for hours. This is an automation that used to work and suddenly it no longer does.

I have an automation, triggered by a button, It’s a simple form submission and the button triggers the creation of various new records in different tables. Many of these records are linked. The Links are written by the automation.

All of this works great. But for the last of the records, that is supposed to be created, it does not. The records IS created, however the linked records are not connected. I am linking to records that were created in earlier steps. And linking these records in the earlier steps was no problem.

I do not get error messages or anything. The link simply does not get written.

Any thoughts?

14 Replies 14

Hi @Tobias_LGKR, difficult to troubleshoot without seeing exactly what you’re pasting into the linked records field. Can you share screenshots?

Hi Rupert,

This is the automation tree:
Bildschirmfoto 2022-11-01 um 10.14.02

The problem occurrs in: Create new Record: ONLINE MEMBERS
Bildschirmfoto 2022-11-01 um 10.16.19

The linked record to CONTACT Record just does not get written in. But it exists. And I can link them manually.

What looks suspicious to me is that you’re passing a name (apparently from a formula) to the linked record field. Are you sure you’re passing a record id there?

No, I am not. I am passing the NAME field of the table.

a) the automation will not accept the record ID. I get an error.
b) I do this all the time all over the place.

Almost all of my NAME fields in my tables are Formula Fields, building the name of that record.

If you want to link to a record by record name, the name needs to be the same. What’s the primary field in the table you’re linking to? Is it maybe calculated (aka a formula field)?

Why don’t you just pass the record id of the record in an earlier step?

image

In this example, the record passed was also created in a step before and I simply took the record id.

All in all, my guess is that you’re passing a name that doesn’t exist in the table you’re referencing.

RECORD NAME is the primary field of the table.

I am doing the exact same thing all over the place. In an earlier step I am doing the exact same thing with the exact same CONTACTS table. I am writing the RECORD NAME field to the CONTACT RECORD link field. This exact same scenario is working in at least 3 dozen automations but all of a sudden it isn’t working here.

Bildschirmfoto 2022-11-01 um 11.27.23

Other ideas I would have and try to troubleshoot:

  1. Are you testing your entire automation? If you’re only testing partially, the record from earlier might not exist anymore (as you might have deleted the record since it was only created for testing purposes).

  2. For me it feels dangerous to pass a formula field as a primary field identifier. I’m usually working in Airtable scripts and I would always go for record ids as they’re definitely unique (whereas you could have two people with the same name for instance). So that is something I would look into as well. There is no reason to pass the name here, you could simply take the record id from the earlier step.

Tobias_LGKR
7 - App Architect
7 - App Architect

I get an error message, when I try passing the ID

![Bildschirmfoto 2022-11-01 um 12.01.53|399x500](upload://i65
Bildschirmfoto 2022-11-01 um 12.00.41
TQJ6oYLCQLqajzQkSFpML3jJ.png)

what’s the error message?