Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I am trying to fetch Tables for a dataset from the API.
I have tried
client.Datasets.GetTablesInGroupAsync(
client.Datasets.GetTablesAsync(
client.Datasets.GetTablesInGroup(
none of them work. They all throw the same error: Operation returned an invalid status code 'NotFound'
How do I go about fetching the Tables for a dataset?
As @lbendlin has said, it seems like you're using the Push Datasets API, which won't work if you're using just a "standard" dataset.
If the dataset resides in a workspace assigned to a Premium (or Embedded) capacity, you can use the Tabular Object Model (TOM) or the ADOMD .NET Client Library (that one is .NET Core, but there are .NET Framework versions) to speak to the underlying Analysis Services (AS) model through the XMLA endpoint. You can see this blog for an example on how to query measures for an AS model - it's an example using Azure Analysis Services, but the same logic applies to the Power BI XMLA endpoint. It's also querying measures, not tables - but the same logic applies.
If you're not using Premium/Embedded, your options are a bit more limited. One far-from-ideal way to get the Table names would be to unzip the pbix file and look in the DiagramLayout file, which lists all the tables in the dataset. But without knowing what exactly you're trying to do in your scenario, I'm not sure whether that's a feasible solution.
Hope this helps,
Ed
Try it out in the sandbox.
https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_gettablesingroup
Worked for me. NOTE: This call is only working with Push datasets.
Dataset : you own it and manipulate it via .pbix. you can selectively change its data
Push dataset: Azure owns it and you can only post to it and query it. There is no .pbix. you cannot change its data after posting/pushing. Only full delete and start over.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |