Azure / azure-cosmosdb-js-server

The JavaScript SDK for server-side programming in Azure Cosmos DB
MIT License
179 stars 152 forks source link

[Resource Not Found]Error #13

Open sonlichao opened 7 years ago

sonlichao commented 7 years ago

I use a stored procedure in documentDB with partitions. documentDB Consistency is configured for "Session".

I do [1-5] in a function.

[1]. I use collection.queryDocuments to query a document A by some keys. [2]. I use collection.deleteDocument to delete the document A. [3]. I use collection.createDocument to create a document B. [4]. I use collection.queryDocuments to query the document B by some keys. [5]. I use collection.deleteDocument to delete the document B.

in [5], I get a [Resource Not Found]Error. Message: {"Errors":["Encountered exception while executing function. Exception = Error: Error{\"Errors\":[\"Resource Not Found\"]}\r\nStack trace: Error: Error{\"Errors\":[\"Resource Not Found\"]}\n