Firestore "Undefined" issue, despite an accurate existing doc ID and collection

Hi All,

I’ve been struggling with this for a while now, unsure why this is happeing…

Issue: Data is being written to firestore collection as an “undefined document”

Steps…

1- We retreive an existing document form firestore by using its ID (successful)

2- We use a SET node to update one of the fields with the current timedate when the n8n flow runs

3- We write back to the exact same document, specify the collection and document ID…

Result: undefined document is created in firestore

Here is the flow (just the beginning)

If I had any hair left I would pull it out :upside_down_face:

Please, rescue me.

Solution:

Do not give it the actual key

Give it the name of the column/field where the key is stored.

The documentation for the firestore node needs significant work

1 Like

Glad to hear you figured it out and thanks so much for sharing your feedback on the docs @Alex_Cvitanovic! I’ll make sure to pass it on to the team.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.