Forum Discussion
Error when trying to change PowerBI report parameters with the API
Hi,
I am trying the new option within the API with Reporter Server October 2020 version to update parameters. The idea is that the PowerBI report is deployed to different servers and I will update the parameter "servername" with the matching server name.
I am following the guide here: https://docs.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis
This works fine unless the parameter contains a special character. In my case Swedish characters like (å). When I want to change the parameter and the parameter value contains this character it shows me this error:
Anyone else seen this issue and found a solution?
Stefan
8 Replies
- ssceFrequent Visitor
I have tested the call to the API using Postman as well with the same error as a result.
So it seems like a bug or is there any setting in the Power BI Report server which I need to set that the API can accept swedish caracters?
- v-janeyg-msftCommunity Support
Hi, ssce
Is the type of the parameter text? If the problem can be resolved by changing into universal characters, it should not support Swedish characters. Thanks.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- ssceFrequent Visitor
Hi,
Yes the parameter is text. Can you suggest a code fragment how to change the text to universal characters and how to post it to the RestAPI?
Thx.Stefan
- AnonymousNot applicable
Hi ssce
With PBI RS May 2022, I had the same issue when I tried to update parameter value with the character 'é'. It seems that the REST API DataModelParameters can't handle character with unicode > 127 (\u007f). I sent a Support Request to Microsoft and they answered:
short update: I was able to fully reproduce your issue. I will check internally if there is a workaround or potential fix. Please understand that this will take some time.
I will keep you posted.
Have an amzing day!
- AnonymousNot applicable