Forum Discussion
Pushing data to PowerBI Streaming dataset API fails when historic data analysis is ON
- 9 years ago
What is the JSON format in your case?
In my test, before enabling "HISTORIC" I can upload data with{ "DATETM" :"2017-03-02T09:04:48.837Z", "SALES" :5000000 }However after enabling "HISTORIC", I got a 400 error though the upload data would finally get saved as in your case. The reponse contains the the error saying something wrong with the dataset JSON. In case you have interest, the tool is POSTMAN.
Based on my test, with a dataset JSON format as below could always work either the "HISTORIC" is enabled or disabled.
[ { "DATETM" :"2017-03-02T10:04:48.837Z", "SALES" :45000000 } ]You can actually send multiple data in JSON array.
[ { "DATETM" :"2017-03-02T10:04:48.837Z", "SALES" :45000000 }, { "DATETM" :"2017-03-01T09:04:48.837Z", "SALES" :38000000 } ]
Hi Prefsmaster,
I'm not clear how did you push the data to power bi streaming api, perhaps you can try to use below sample application to push data:
Reference articles:
Real-time streaming in Power BI
In addition, if above are not help, can you please share some detail content of your issue?
Regards,
Xiaoxin Sheng
Afterthought: I know those articles you mention, andused them to get as far as I am now :-)
I am now using this bit from the first referenc article you mention:
I understood from the article that BOTH the URL and AAD approaches should work with an API created through the service UI.
Perhaps it is wrong, and is it mandatory to use AAD auth when you want to use Historic data analysis.
Ferenc