Firebase - Cannot convert undefined or null to object

Hello!

I am trying to store some data from an http request in a firestore database.

However, sometimes the fields come back empty or “null”, and this is causing the error:
“Cannot convert undefined or null to object”

This interrupts the workflow and I am not sure if this is an n8n side issue or firestore side issue.

I’m trying to store about 20-30 fields, and while building this workflow, any one of those fields could be empty or null and depending on the api call I am running it would be impossible to anticipate each one.

Is there some way around this? Perhaps some sort of code to say If empty - fill with “empty” or something like that?

Hi @galaxy2jake

Can you share an example of the response from Firestore and of the next node relying on that data?