c# - "Resource Not Found" error on deleting document from documentdb -


i having issue deleting document form document db. code trivial , not doing fancy. getting self link of document , using self link delete giving me exception.

await client.deletedocumentasync(entity.selflink, new requestoptions() { partitionkey = new partitionkey(partitionkey) }).configureawait(false); 

entity newly added document exists in database (i have checked existence azure portal)

the exception getting:

message: {"errors":["resource not found"]} activityid: 052ad225-4e04-4757-89b8-51f6ccf55f7c, request uri: https://sy3prdddc05-docdb-1.documents.azure.com:15236/apps/0ee0095b-872d-45bc-8739-67cfbd97db79/services/466a4dd1-27d3-45ca-b013-6875f06a38ab/partitions/73e5c3d8-0332-4c0c-9aec-47a3469ba958/replicas/131354346050636923p//dbs/l29haa==/colls/l29hakzfjwa=/docs/l29hakzfjwafaaaaaaaaaa==

any idea??

i found issue! name of partition key specified collection pascal case not camel case! , apparently case sensitive couldn't find partition key!


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -