Cosmos DB source query not working

Arunkumar 86 Reputation points
2022-05-11T07:46:37.087+00:00

How to query the Cosmos DB document using container name in data flow inside azure data factory

200839-image.png

When we use the container name in the query (SELECT * FROM [Case]) we get the error "at Source 'source1': java.util.NoSuchElementException: None.get"

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

Answer accepted by question author
  1. PRADEEPCHEEKATLA 91,581 Reputation points Moderator
    2022-05-12T05:57:31.183+00:00

    Hello @Arunkumar ,

    Thanks for the question and using MS Q&A platform.

    Could you please run the same query in Azure Cosmos DB => Data Explorer and see if the query works as excepted?

    201217-image.png

    You can run the same query on ADF data flows as shown below:

    • SELECT * FROM [items] - throws error message
    • SELECT * FROM items - works as excepted

    201312-adf-cosmosdb-query.gif

    In case, if you are still facing the same error message, could you please share the complete error message which you are experiencing along with the screenshot?

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.