This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello,
I would like to submit an issue i'm encountering with the Power BI REST API.
We used to succesfully call "ExportToFileInGroup" route on our web app, and then it stopped working without changing code or updating the app core.
So i tested this route online with the "try it" function on documentation, and didn't manage to make it work on the first place with the usual post body:
{
"format":"PDF",
"powerBIReportConfiguration": {
"identities": [
{
"username":"xxx",
"roles":["xxx"],
"reports":["xxx"],
"datasets":["xxx"]
}
]
}
}
It returns a 400 error:
{
"error": {
"code": "InvalidRequest"
"message": "Export report was called with a bad request"
}
}
First weird thing, I tried modifying "powerBIReportConfiguration" property to the name of the class it's accepting, "PowerBIReportExportConfiguration".
It worked :
So then i tried the same EXACT SAME request in the webapp, but i'm getting a new error, even if it worked properly on "try it":
{
"error": {
"code": "InvalidRequest"
"message": "Export report requires effective identity to be provided for the report's dataset"
}
}
The dataset does require an identity, and it used to work. I can't tell exactly when it stopped working (some months ago).
I must say i'm hitting a deadend here, hope someone can lead me to the solution.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.