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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
olimilo
Responsive Resident
Responsive Resident

Azure CosmosDB v2 Connector: data is showing error or no columns

I'm trying to load data from our Azure CosmosDB container but whenever I try to view a table column or try to expand it, it results in an error or is not loading any columns or doesn't load at all:

olimilo_0-1714978686444.png

 

Which is odd considering there should be data in there in this format:

[
    {
        "WebTrfId": "99999998_1_1_061838",
        "Fields": [
            {
                "FieldId": 7944,
                "FieldValue": "04/23/2024",
                "FieldDeleteValue": null,
                "ParentFieldReference": null,
                "ParentFieldName": null,
                "FieldName": "<p>Review_Date</p>7944",
                "VersionID": 10
            }
        ]
    }
]

 

Is there any way I can diagnose this or find the cause of the problem? I am able to pull the data using SQL but we were advised to use the Azure Cosmos DB v2 connector due to recent changes in the company.

1 ACCEPTED SOLUTION
v-heq-msft
Community Support
Community Support

Hi @olimilo,
Based on your description, the error you mentioned is caused by not having the correct columns in the data source or the column names do not match the column names in the data source. So first, make sure that your data source (Azure Cosmos DB container) does contain the required data. You can use SQL queries or other methods to verify that the data exists. Second, check that your code is correctly fetching the data from Azure Cosmos DB. In particular, make sure that the column names and field names you are using match the actual names in the database.
You can refer to this document for more information about Azure Cosmos DB v2.
Power Query Azure Cosmos DB v2 (Beta) - Power Query | Microsoft Learn

Best regards,

Albert He

 

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



View solution in original post

1 REPLY 1
v-heq-msft
Community Support
Community Support

Hi @olimilo,
Based on your description, the error you mentioned is caused by not having the correct columns in the data source or the column names do not match the column names in the data source. So first, make sure that your data source (Azure Cosmos DB container) does contain the required data. You can use SQL queries or other methods to verify that the data exists. Second, check that your code is correctly fetching the data from Azure Cosmos DB. In particular, make sure that the column names and field names you are using match the actual names in the database.
You can refer to this document for more information about Azure Cosmos DB v2.
Power Query Azure Cosmos DB v2 (Beta) - Power Query | Microsoft Learn

Best regards,

Albert He

 

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



Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors