Skip to main content
Community site session details

Community site session details

Session Id : drj9foJO6p91kSELFwnXoX
Power Automate - Using Connectors
Answered

Cosmos DB Error While Querying Documents

Like (0) ShareShare
ReportReport
Posted on 7 May 2019 15:59:06 by 205
HI Everyone,
 
I am using the Cosmos DB Connector's Query Documents action and am getting this error:
 
"code": "BadRequest",
"message": "Message: {\"Errors\":[\"The collection cannot be accessed with this SDK version as it was created with newer SDK version.\"
 
Here is a little more background: 
  • Connecting to a Core SQL Cosmos DB Instance
  • Throughput has been applied at the Database level instead of the Collection level - Not sure if this matters or not
  • Are attempting to query an Accounts collection within the database

 

Query Documents.PNG

 

Has anyone seen this error? Let me know if there are any other details I could provide that would be useful.

 

Thank you!

Sean

 

 
 
  • Verified answer
    panterra Profile Picture
    205 on 14 May 2019 at 14:01:23
    Re: Cosmos DB Error While Querying Documents

    Hi Everyone,

     

    It turns out that this error is related to the following issue with the partition key setting.

     

    Partition Key.png

     

    This must be unchecked on your partition for the Cosmos DB Connector to work correctly.

     

    Thanks,

    Saen

  • v-yamao-msft Profile Picture
    on 08 May 2019 at 08:21:57
    Re: Cosmos DB Error While Querying Documents

    Hi @panterra ,

     

    I have searched online for relative error message. From this thread, it seems that upgrading the .nuget packages Microsoft.Azure.DocumentDB and Microsoft.DocumentDB.TransientFaultHanding to latest stable will fix the issue.

     

    Please check it and try to update your SDK version to see if it will work:

    https://github.com/Azure/azure-documentdb-datamigrationtool/issues/35

     

    Further, there are some know issues and limitations when working with Azure Cosmos DB, please check it for more details:

    https://docs.microsoft.com/en-us/connectors/documentdb/

     

    By the way, please try to change your query code likes below without double quotes around the number to see if it will work:

    Select*From Accounts c Where c.docid=1

     

    Best regards,

    Mabel

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Loading complete