Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
sittell
New Member

Cosmos DB V2 Connector doesn't load json arrays

Hi, 

 

I'm trying to build Power BI reports on top of Cosmos DB using Cosmos DB V2 Connector and a Direct Query Mode. Currently I have an issue with json data which contains arrays. In this case when loading the data, arrays are shown as a separate table which has been evaluating and never being loaded. All other data has been loaded sucessfully, but has a column with a link to the array as a table which doesn't work. Has anyone had the same problem and has an idea how it could be solved? Is there any way to work with arrays with Cosmos DB V2 Connector for Power BI or you have to create some data preparation in between?

I've read this topic, but it doesn't really suggest any solution.

 

I would be grateful for any feedback!

 

Best regards,

Lisa

 

 

 

sittell_0-1715946627721.png

sittell_1-1715946825125.png

 

sittell_2-1715946853816.png

 

6 REPLIES 6
ananco
New Member

Hi!

Did you find the solution? I'm stuck with this problem and apparently nobody has come out with the solution jet. 

Kind regards

Hi @ananco, I was wondering if you got any leads on this one. I am experiencing the same situation. Thanks!

AMaksymyshyn
New Member

Hi, have the same issue with Cosmos DB V2 Connector,
Example document:

{
    "id": "test",
    "metrics": [
       3, 5, 6
    ]
}

 

AMaksymyshyn_0-1723492212040.png

 

Expression.Error: The column 'id' of the table wasn't found.
Details:
id

Hi @AMaksymyshyn, I am in the same situtation and was wondering if you have any leads in regards to the same query you mentioned above. 

v-yangliu-msft
Community Support
Community Support

Hi  @sittell ,

 

You can check the following official documentation for known issues you may be experiencing with the Cosmos DB V2 connector

Troubleshoot connector and format issues in mapping data flows - Azure Data Factory | Microsoft Lear...

 

Or you can consider transforming your data in Cosmos DB to flatten the arrays.

CosmosDB, help flatten and filter by nested array - Stack Overflow

Flatten nested arrays in cosmosdb sql - Stack Overflow

 

This is the related document, you can view this content:

Solved: Re: Removing any columns causes errors - Microsoft Fabric Community

Solved: Expression.Error: The column 'Column1' of the tabl... - Microsoft Fabric Community

Solved: Re: The Column '___' of the table wasn't found. - Power Platform Community (microsoft.com)

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Liu, 

 

Thank you for your feedback! Is there any way to specify an sql query for Cosmos DB V2 connector in order to flatten Cosmos DB data?

Thanks.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.