Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in BI by (17.6k points)

Receiving unauthorized as the response when trying to fetch tables within the datasets. I'm not clear on why, given that I seem to be able to get and delete datasets without issue. I did not see a reference in the docs on any special steps to be taken?

I am ultimately looking to manipulate the rows, but the row methods are also being returned with an unauthorized response even when I skip over the table iteration and go straight for them.


static async Task GetTableInformation(string workspaceCollectionName, string workspaceId)


    var devToken = PowerBIToken.CreateDevToken(workspaceCollectionName, workspaceId);

    using (var client = await CreateClient(devToken))


        var datasets = client.Datasets.GetDatasets(workspaceCollectionName,workspaceId);

        foreach(var dataset in datasets.Value)


            var tables = client.Datasets.GetTables(workspaceCollectionName, workspaceId, dataset.Id);

            Console.WriteLine("Table count is {0}.", tables.Value.Count);





1 Answer

0 votes
by (47.2k points)

Actually, push data APIs aren't supported with Power BI Embedded yet. The Power BI team will be updating their APIs to reflect that ASAP since this is a bug in their SDKs.

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94.1k users

Browse Categories