Hi @Jack_Woehr, thanks for the answer!
I am not sure what do you mean? I am creating document in one collection, and then updating document from other collection. It’s not like I am updating the same document that I created (even though I think that should work too).
That being said, this error only happens sometimes, not always. Usually, the logic will pass without the error, but sometimes it is thrown randomly. (I just figured I didn’t mention this in the question itself and I think it’s important. Will updated the question).