Azure DocumentDB Owner resource does not exist

user1301722 picture user1301722 · Apr 21, 2017 · Viewed 15.3k times · Source

I having the same error icrosoft.Azure.Documents.DocumentClientException: Message: {"Errors":["Owner resource does not exist"]} , this is my scenario. When I deployed my webapp to Azure and try to get some document from docDb it throws this error. The docdb exists in azure and contains the document that i looking for.

The weird is that from my local machine(running from VS) this works fine. I'm using the same settings in Azure and local. Somebody have and idea about this.

Thanks

Answer

Manohar Reddy Poreddy picture Manohar Reddy Poreddy · Nov 24, 2017

Owner resource does not exist

occurs when you have given a wrong database name.

For example, while reading a document with client.readDocument(..), where the client is DocumentClient instance, the database name given in docLink is wrong.