Forum Discussion
Refresh Dataset API returns 400 Bad Request when refresh is in progress
I am always getting the "Operation returned an invalid status code 'UnsupportedMediaType'" error everytime I try to refresh a dataset.
Snippet
var refreshData = client.Datasets.RefreshDatasetInGroup(cloneGroup.Id, report.DatasetId) as Datasets;
Anonymous wrote:
I am always getting the "Operation returned an invalid status code 'UnsupportedMediaType'" error everytime I try to refresh a dataset.
Snippet
var refreshData = client.Datasets.RefreshDatasetInGroup(cloneGroup.Id, report.DatasetId) as Datasets;
Anonymous
What is the dataset in your case? What if you go with my demo calling REST API instead of using the SDK?
- Anonymous9 years agoNot applicable
Eric_Zhang I am getting "Invalid Dataset. This API can only be called on a Model-base dataset" when I use your demo.. Not sure what it means.
- Eric_Zhang9 years agoMicrosoft Employee
Anonymous wrote:
Eric_Zhang I am getting "Invalid Dataset. This API can only be called on a Model-base dataset" when I use your demo.. Not sure what it means.
Anonymous
What is the datasource in your dataset?
- hskrishna8 years agoNew Member
Anonymous Eric_Zhang
I'm facing the same issue
Getting "Operation returned an invalid status code 'UnsupportedMediaType'" using the SDK as well as the REST API
Anonymous Were you able to resolve the issue?
- hskrishna8 years agoNew Member
Update - Able to get it to work in Import mode. Earlier I was trying the refresh with DirectQuery.
I guess Refresh for datasets in DirectQuery mode isn't supported.