CreateDocument in DocumentDB (Cosmos) says created but it’s not there?

Had a bit of head-scratcher today. I was using CreateDocumentAsync to write a new document to the store and the return value was ‘created’ but when I searched for the document it wasn’t there. The problem was that I was using a string for the partition Id when it should have been an INT. Doh.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s