422 errors

Include screenshots of

  • your scenario setup (functions, mappings, variables, etc.)
  • module configurations and outputs
  • any error messages you are getting

Hi,

I’m a beginner in Make. I try to connect Notion to Airtable to update datas or create a new rov of information.

I chose “Watch database item” for Notion and “Upsert a record” for Airtable. It’s all good for Notion. But not for Airtable.


I looked everywhere and couldn’t see any ID as mentionned. So I don’t know how correct my mystake. Could you help me understand the matter please ?

I joined an exemple of my DB in Notion and another in Airtable


Thanks a lot

Salut!! Welcome to the Make community!

can you show us how you mapped the data in the Airtable/Upsert module?

With Airtable, if you want to update an existing record, you need to provide its internal ID. If you don’t provide a “Record ID”, it will create an item; if you provide the “Record ID”, it will update.

It means that you have to “know” the ID of the record you need to update in Airtable, when it’s modified in Notion.
If this information has never been stored in Notion, the only way for you is to first search the record in Airtable, and then update it if you found it (or create it if it was not found).

Which means that you must have a common field between both products (SIRET, Entreprise name - if it’s unique, …)

You have to search the record in Airtable using this field, and then, in your upsert mapping, you have to map the “Record ID”.

I can help you with the last parts, but first, we need to know how you did the mapping (to see if there’s something to change there), and what field coud be used to correlate records in Notion with records in Airtable.

A bientôt,

Benjamin

1 Like

Thanks a lot Benjamin

I mapped the unique_id from Notion (N° Part) which is composed with 2 part

It looks like you’ll be able to use this NPart to find what record you have to update (or create) in Airtable.

Just to make sure I get it right. You want to sync data in Notion to your Airtable database, right. If you create a new record in Notion, you want to create the same in Airtable, and if you modify a record in Notion, you want to update it in Airtable. Is it correct?

All your records in Notion have their own Record ID, and they are different than the Record IDs in Airtable. Which means you can’t directly map these id between the 2 systems.
But if NPart identifies uniquely each Enterprise, you can use it to figure out if the record is already in Airtable or not.

So, what you should do is to add an Airtable/Search Records module just after Notion, and add in the Formula field Npart=“xxxx” (Npart has to be the name of the field in Airtable, and xxxx has to be the NPart variable you map from the Notion step).

If the record is found, Airtable will return its RecordID. If not found, it will return no result.
Then you do the Airtable/Upsert a Record, and you map the ID from “Search Records” in the “Record ID” of Airtable/Upsert. And you map the other fields, the way you did already.

If the Record already exists in Airtable, it will be updated. If it didn’t exist, it will be created.

I hope I’m clear. Let me know

Benjamin

2 Likes

Hello Benjamin

You perfectly understand what I want to do, create a new row if the entreprise doesn’t existe and if it exists, update the information when necessary.

I added an Airtable search module as invited.

Here is the result

As you can see, ID appears twice and I don’t know why. I have only once in Airtable table.

I then filter ID as indicated in the Upsert module

But the result is still the same

Do you have another idea please ?

Thanks a lot

Hello!

Very good, you did exactly what was needed if you want to update records instead of creating one all the time.

I guess that the error you encounter is from one of the fields you are mapping. Isn’t there any field that references another object in Airtable?
Or, maybe a “select” field where you have to set an ID instead of a Label?

Try to remove any mapping that references other objects or select fields and test; to see if the error is here.

Benjamin

1 Like

Thanks Benjamin

I did as mentionned. Here the result.

It’s pretty much better.

I will test it with a new row in Notion

1 Like

Perfect!

If you test, adding little by little the other mappings, you will find what Field causes troubles. I suspect it’s a reference to another object.
Let me know the outcome.

Benjamin

1 Like

Ok, Uspert module doesn’t add the new row in Airtable. I believed that it was able to to that as soon as the entreprise doesn’t exist.

It just run and sort 7 entreprises without any change.

I suppose that I have to add a filter in order to let pass only entreprise with any change, but I understood that the Uspert module was in charge to update the data. An I wrong ? So why let pass throught the module entreprise without any change ?

you’re encountering an issue with identifying the record ID in Airtable. The ID is crucial for updating or inserting records. Check your Airtable module’s configuration; ensure you’re mapping the correct fields and that the record ID is included. If it’s missing, you might need to adjust your Airtable settings or consult their documentation for guidance on retrieving record IDs. Also Visit FESCO Bill Online and Best go karts

Hi you both

I did as suggested by Benjamin. As soon as I use a select or relation field, there is an error. For example, Contact with only one choice “ID”. I can only chose ID and it doesn’t work. With some other where I have more choice, I tried to chose name instead of ID, but it doesn’t work neither.

Those field are the problem : rôle, type activité, contacts, origine, statut sté, catalogue

I found nothing in documentation to explain the matter.

Thanks for your help

Hey @NathyB

Sometimes, upsert module fails to run succesfully. I would suggest you to go with “update a record” and “create a record” modules.

Please add a router after your “search record” module and add 2 routes. one for " create a record" module with filter “Id does not exist” and another with “update a record” module with filter “Id exists”.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support | Book Live Implementation
Visit us here
Youtube Channel

1 Like

Hi,

This is exactly what I tried to do this morning. And I still have the same problem to mapp Unique selector and relation table

In the first case, I tried to mapp the field with ID, but it didn’t work. So I tried with the name. Not better.

Regarding the relation table field, I use the ID (lonely option possible). Didn’t work neither

“Rôle, type activité, contacts, origine, catalogue”… all these fields cannot be mapped. I don’t understand why.

All suggestion are welcome to resolve my case.
Thanks a lot

@NathyB

It says you are passing emptystring in record ID. Could you please share the image of your mapping and the output bundle of search record module? You can check what record ID it has taken in input bundle of error module also.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support | Book Live Implementation
Visit us here
Youtube Channel

2 Likes