Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tanthiamhuat opened this issue Oct 11, 2019 · 1 comment

Comments

@tanthiamhuat
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant