[英]Azure table storage (Partition key row key), how to insert multiple entities in corresponding to same parttion and different rowKey?
[英]Inserting documents with the same partition key value and different 'id' values
當給定新的“ id”但分區鍵與現有文檔的分區鍵相同時,我需要插入一個新文檔。 但是它給了我一個DocumentClientException。 為什么是這樣? 我不應該能夠擁有多個具有相同分區鍵值的文檔嗎?
盡管我實際上給了它一個不存在的新“ id”,但它給了我這個錯誤。
com.microsoft.azure.documentdb.DocumentClientException: Entity with the specified id already exists in the system.,
RequestStartTime: 2019-04-11T15:36:19.7657781Z, RequestEndTime: 2019-04-11T15:36:19.7657781Z, Number of regions attempted: 1
ResponseTime: 2019-04-11T15:36:19.7657781Z, StoreResult: StorePhysicalAddress: rntbd://sn4prdapp19-docdb-1.documents.azure.com:14030/apps/59d3b9ef-17ca-4bbf-8a11-39d0199a8d29/services/27f87c68-85a5-44ec-b1cf-bfc46347392b/partitions/6ddeca7e-1056-4ed7-b70f-5472223dde1c/replicas/131974948271521006p/, LSN: 495, GlobalCommittedLsn: 495, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 409, SubStatusCode: 0, RequestCharge: 1.57, ItemLSN: -1, SessionToken: 0#495#4=-1, UsingLocalLSN: False, TransportException: null, ResourceType: Document, OperationType: Create
, Microsoft.Azure.Documents.Common/2.2.0.0, StatusCode: Conflict
問題涉及一個單獨的字段,該字段在集合中定義為唯一
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.