cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Power BI REST API Table and Row query return with 404 error

Hello,

 

I get this issue when trying to access table and to add or delete rows using REST API. I followed the documentation example here

https://msdn.microsoft.com/en-us/library/mt147898.aspx

Error looks like a typical 404 error

The remote server returned an error: (404) Not Found.

 

 

I tried both my own workspace and group workspace (where i am the owner), using client id and client secret generated from 

https://dev.powerbi.com/apps

by ticking all access boxes to be true.

 

The weird thing is that group, dataset and report APIs still work but not for table and row. I like to use table and row api for managing the datasource. 

 

is there any thing in the middle not correct?

7 REPLIES 7
Highlighted
Frequent Visitor

Re: Power BI REST API Table and Row query return with 404 error

is it because now the API for table and row is turned off? since they are not check box options on the web app registration page

https://dev.powerbi.com/apps

Highlighted
Frequent Visitor

Re: Power BI REST API Table and Row query return with 404 error

Added to the test, below API documentation doesn't seem to work with https://dev.powerbi.com/apps token provided

 

https://msdn.microsoft.com/en-us/library/mt203562.aspx

 

 

 

Highlighted
Microsoft
Microsoft

Re: Power BI REST API Table and Row query return with 404 error


@jgu1 wrote:

Hello,

 

I get this issue when trying to access table and to add or delete rows using REST API. I followed the documentation example here

https://msdn.microsoft.com/en-us/library/mt147898.aspx

Error looks like a typical 404 error

The remote server returned an error: (404) Not Found.

 

 

I tried both my own workspace and group workspace (where i am the owner), using client id and client secret generated from 

https://dev.powerbi.com/apps

by ticking all access boxes to be true.

 

The weird thing is that group, dataset and report APIs still work but not for table and row. I like to use table and row api for managing the datasource. 

 

is there any thing in the middle not correct?


@jgu1

The table and row API works both in groups or in the default workspace base on my test. Do note that the those two API only work with the datasets created via REST API, otherwise you'll get an 404 error with a specific message "Dataset xxxxxxxx-xxx-xx-xxxx is not Push API dataset.".

 

So I guess that you're trying to query tables from the dataset that may come from power bi desktop or get data from online service?

Highlighted
Frequent Visitor

Re: Power BI REST API Table and Row query return with 404 error

right the dataset i try to query is loaded from desktop pbix file

Highlighted
Frequent Visitor

Re: Power BI REST API Table and Row query return with 404 error

plus, are you saying data table and table row access read-and-write operations is available only if dataset is created by API itself?

 

 

Highlighted
Microsoft
Microsoft

Re: Power BI REST API Table and Row query return with 404 error


@jgu1 wrote:

plus, are you saying data table and table row access read-and-write operations is available only if dataset is created by API itself?

 

 


Yes. The REST API Table and Row only works on the dataset created by API.

Highlighted
Helper I
Helper I

Re: Power BI REST API Table and Row query return with 404 error

 Is this still the case and is there a way to set the defaultMode on a dataset that was created with the desktop so the Power BI REST API Table and Row queries will work with it?

 

Thanks

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.