title: This document does not exist and will not appear in queries or snapshots, but identically structured document works
body: <p>Preface: this question is already asked <a href="https://stackoverflow.com/questions/46821241/this-document-does-not-exist-it-will-not-appear-in-queries-or-snapshots-cloud">here</a> but user gave up and gave solution to first answer. This question also differs in that I have two similar collection structures, but the error only occurs on one of them.</p>
  
  <p>I am working with Google's new firestore database, and have created the following structure: territories/{list of territories}/dispatches/{list of dispatches}/{dispatch information} </p>
  
  <p>We are using <a href="https://firebase.google.com/docs/auth/admin/create-custom-tokens" rel="noreferrer">this method</a> to create custom tokens on our backend using Firebase Admin SDK. When a user logs in on our backend, we generate the token and add the territories they have access to as additional claims, which we intend to access from the auth / request.auth objects in our Security Rules to limit their access to the dispatch documents accordingly. I mention this in case we are going about the structure incorrectly, in which case please correct me as we are new to firestore.</p>
  
  <p>The problem we are encountering is that one of the documents gives the warning: "This document does not exist and will not appear in queries or snapshots" (see image below). However, we have an identical document structure (document 7 in the image) that does not give this warning and does appear in queries and snapshots.
  <a href="https://i.stack.imgur.com/ehs5E.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ehs5E.png" alt="enter image description here"></a></p>