Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.