Forum Discussion
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
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
- Eric_ZhangMicrosoft Employee
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
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?
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?
- jgu1Frequent Visitor
right the dataset i try to query is loaded from desktop pbix file
- jgu1Frequent Visitor
plus, are you saying data table and table row access read-and-write operations is available only if dataset is created by API itself?
- Eric_ZhangMicrosoft Employee
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.
- jgu1Frequent Visitor
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
- jgu1Frequent Visitor
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