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?
Solution:Jump to 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.
3 Replies
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
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.
Cool, good to hear. Was it mentioned anywhere in the node info to use Parse, If you could share we can make an update.