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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
Tonil
Regular Visitor

Odata context URL is invalid

When trying to Get Data from an Odata source, from Dynamics 365 Business Central Online, I get the below error, yet other Odata links from the same database connect fine. We are looking at Vendor data but in the Item Ledger Entry (ILE) table, and the link works fine in the browser, but not when trying to load into PBI.

 

image.png

image.pngimage.png

We have filtered the query to reduce the data, so the issue is not size, we have recreated the Query, republished the query, reduced the number of columns, and each scenario populates the data in the browser window, however it won’t load into PBI.

We have opened a new file in PBI, connected to an existing odata source which works fine, but this new one linking to Item Ledger entries in Business Central is not.

The webservices that work and that don’t work are created in a similar way in the Business Central extension through a query object. The browser is using the same connection method with username and webserviceaccesskey and we use the same username details in PBi. We have compared the first part of the URL results for the file that would load (ITEMSACPBI) and the file that won’t (VILE2), and they are identical. {"@odata.context":"https://api.businesscentral.dynamics.com/v2.0/ ODataV4/$metadata#Company('My%20Company')/ITEMSACPBI","value" {"@odata.context":"https://api.businesscentral.dynamics.com/v2.0/ ODataV4/$metadata#Company('My%20Company')/VILE2","value"

Any ideas/help would be appreciated! Thanks

4 REPLIES 4
j2associates
New Member

This makes no sense to me, but it worked. I was getting the exact same error as others have posted above for a query that was setup identically to other queries that were working. To resolve the issue, I cleared all Cache and User Permissions within the Power BI desktop. After doing so, the query then pulled data as expected.

 

Anonymous
Not applicable

This worked for me, thanks

amitchandak
Super User
Super User

@Tonil , refer if these can help

https://community.powerbi.com/t5/Issues/Connecting-to-Dynamics-365-trows-error-about-invalid-OData/i...

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/283151/unable-to-connect-power-bi-...

 

Or log an issue at

https://community.powerbi.com/t5/Issues/idb-p/Issues

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Greg_Deckler
Super User
Super User

@Tonil - Tough to say exactly. You could check the Issues forum here:

https://community.powerbi.com/t5/Issues/idb-p/Issues

And if it is not there, then you could post it.

If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

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.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.