Forum Discussion
mthierba
9 years agoAdvocate I
Refresh Dataset API returns 400 Bad Request when refresh is in progress
Hi, I'm making use of the new Dataset Refresh API, and the documentation states that a status code of 409 Conflict is returned when a refresh is already executing. However, I am receiving a 400 Bad ...
Eric_Zhang
9 years agoMicrosoft Employee
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?
hskrishna
8 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.