Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
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.

method-- https://msdn.microsoft.com/en-us/library/microsoft.powerbi.api.beta.datasetsextensions.gettables.aspx

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

0 votes
1 answer
asked Mar 6, 2021 in BI by Chris (11.1k points)
0 votes
1 answer

Browse Categories

...