Forum Discussion
OData service Expand error
Hi All,
I created an ODATA api in .NET 5 (C#) and when testing in the browser this is working fine.
It has several parent entities and having enabled expand() I can get related child entities with a query like ~/odata/parent?$expand=child.
Unfortunately this is not working in PowerBI. If I go the the baseUrl (~/odata/) I get all my parent tables nicely and selecting one also loads the parent level data with column in the back that I could 'expand'.
When selecting the expand button or clicking on the table link (in the cell) I get the following error:
2 Replies
- AnonymousNot applicable
Hi Anonymous ,
The error message also told that is a not supported type. And the Text/Html seems to be a content types which is not allowed,you may change it to application/xml and application/json.
This link says we can connect using ODATA Feed.
Refer to:
https://community.powerbi.com/t5/Desktop/O365-Content-OData-errors/td-p/197721
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - AnonymousNot applicable
Hi Anonymous ,
Could you tell me if my post helps you a little? If it is, kindly Accept it as the solution to make the thread closed. More people will benefit from it.Hope to hear from you
Best Regards,
Eyelyn Qin