Skip to content Skip to sidebar Skip to footer

Firestore Writebatch Fails To Execute When Using Set(), Update(), Delete() On Document Reference

I am building an Android application using Firestore as my backend. I am writing to multiple collections within a document, and in some instances can write to a document, update t

Solution 1:

I've determined this was a bug and reported it to Google. Further testing indicates that this issue may be specific to writing FieldValue.serverTimestamp() to a document that will eventual be deleted within the same batch write. If the FieldValue.serverTimestamp() is replaced with a different value (ex: System.currentTimeMillis()), the issue seems to go away.


Post a Comment for "Firestore Writebatch Fails To Execute When Using Set(), Update(), Delete() On Document Reference"