IronGold
IronGold5mo ago

Create New Firestore Document problem

I keep getting a "Value for argument "data" is not a valid Firestore document." error when I try to use the "Create New Firestore Document". Am I missing something with my formatting?
No description
No description
Solution:
I just figured it out. Very important to note for people using this node is that the object that firestore returns does not need to be parsed and using the Parse JSON node will cause the error.
Jump to solution
3 Replies
Gaurav Chadha
Gaurav Chadha5mo ago
This occurs when one of the value is undefined or of not supported Firestore type, you can log all the above values from the context variable before the Firestore node to ensure that the values are coming correct or not. Use the log node to log the same context variable values.
Solution
IronGold
IronGold5mo ago
I just figured it out. Very important to note for people using this node is that the object that firestore returns does not need to be parsed and using the Parse JSON node will cause the error.
Gaurav Chadha
Gaurav Chadha5mo ago
Cool, good to hear. Was it mentioned anywhere in the node info to use Parse, If you could share we can make an update.