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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

 

This worked for me, thanks

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".


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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