conwid / AzureDocumentDbDriver

MIT License
23 stars 3 forks source link

The collection cannot be accessed with this SDK version as it was created with newer SDK version #8

Open tanthiamhuat opened 4 years ago

tanthiamhuat commented 4 years ago

I am trying to access another database from CosmosDB, but get the below error:

Message: {"Errors":["The collection cannot be accessed with this SDK version as it was created with newer SDK version."]}ActivityId: b534373e-1f70-4763-853f-0590fdbd0d00, Request URI: /apps/d0baacc8-f141-47e7-b6c5-e053adeb91aa/services/a15e4c0a-ea83-4c5f-afaa-39bb99819e8f/partitions/fdaf1c9d-9e0a-496b-a69b-89b7cca157ed/replicas/132152253076415181s/, RequestStats: RequestStartTime: 2019-10-11T04:59:41.6945779Z, RequestEndTime: 2019-10-11T04:59:41.7045473Z,  Number of regions attempted:1ResponseTime: 2019-10-11T04:59:41.7045473Z, StoreResult: StorePhysicalAddress: rntbd://cdb-ms-prod-southeastasia1-fd7.documents.azure.com:14128/apps/d0baacc8-f141-47e7-b6c5-e053adeb91aa/services/a15e4c0a-ea83-4c5f-afaa-39bb99819e8f/partitions/fdaf1c9d-9e0a-496b-a69b-89b7cca157ed/replicas/132152253076415181s/, LSN: 8, GlobalCommittedLsn: 7, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 400, SubStatusCode: 0, RequestCharge: 0, ItemLSN: -1, SessionToken: 8, UsingLocalLSN: True, TransportException: null, ResourceType: Document, OperationType: ReadFeed, SDK: Microsoft.Azure.Documents.Common/2.7.0 Message: {"Errors":["The collection cannot be accessed with this SDK version as it was created with newer SDK version."]}ActivityId: b534373e-1f70-4763-853f-0590fdbd0d00, Request URI: /apps/d0baacc8-f141-47e7-b6c5-e053adeb91aa/services/a15e4c0a-ea83-4c5f-afaa-39bb99819e8f/partitions/fdaf1c9d-9e0a-496b-a69b-89b7cca157ed/replicas/132152253076415181s/, RequestStats: RequestStartTime: 2019-10-11T04:59:41.6945779Z, RequestEndTime: 2019-10-11T04:59:41.7045473Z,  Number of regions attempted:1ResponseTime: 2019-10-11T04:59:41.7045473Z, StoreResult: StorePhysicalAddress: rntbd://cdb-ms-prod-southeastasia1-fd7.documents.azure.com:14128/apps/d0baacc8-f141-47e7-b6c5-e053adeb91aa/services/a15e4c0a-ea83-4c5f-afaa-39bb99819e8f/partitions/fdaf1c9d-9e0a-496b-a69b-89b7cca157ed/replicas/132152253076415181s/, LSN: 8, GlobalCommittedLsn: 7, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 400, SubStatusCode: 0, RequestCharge: 0, ItemLSN: -1, SessionToken: 8, UsingLocalLSN: True, TransportException: null, ResourceType: Document, OperationType: ReadFeed, SDK: Microsoft.Azure.Documents.Common/2.7.0

Message: {"Errors":["The collection cannot be accessed with this SDK version as it was created with newer SDK version."]}ActivityId: b534373e-1f70-4763-853f-0590fdbd0d00, Request URI: /apps/d0baacc8-f141-47e7-b6c5-e053adeb91aa/services/a15e4c0a-ea83-4c5f-afaa-39bb99819e8f/partitions/fdaf1c9d-9e0a-496b-a69b-89b7cca157ed/replicas/132152253076415181s/, RequestStats: RequestStartTime: 2019-10-11T04:59:41.6945779Z, RequestEndTime: 2019-10-11T04:59:41.7045473Z,  Number of regions attempted:1ResponseTime: 2019-10-11T04:59:41.7045473Z, StoreResult: StorePhysicalAddress: rntbd://cdb-ms-prod-southeastasia1-fd7.documents.azure.com:14128/apps/d0baacc8-f141-47e7-b6c5-e053adeb91aa/services/a15e4c0a-ea83-4c5f-afaa-39bb99819e8f/partitions/fdaf1c9d-9e0a-496b-a69b-89b7cca157ed/replicas/132152253076415181s/, LSN: 8, GlobalCommittedLsn: 7, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 400, SubStatusCode: 0, RequestCharge: 0, ItemLSN: -1, SessionToken: 8, UsingLocalLSN: True, TransportException: null, ResourceType: Document, OperationType: ReadFeed, SDK: Microsoft.Azure.Documents.Common/2.7.0

tanthiamhuat commented 4 years ago

see https://social.msdn.microsoft.com/Forums/en-US/4f45de7f-0193-4323-845e-d45d38e544a6/the-collection-could-not-be-read-because-it-was-created-with-a-newer-api-version?forum=azurecosmosdb

I think your side would to use the new version: Update your client SDK to at least 1.2.0 (preferably straight to 1.4.1) and this problem will go away. http://www.nuget.org/packages/Microsoft.Azure.DocumentDB/1.4.1