Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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 am writing a powerShell Script using the module ReportingServicesTools to automate updating the connection Strings of my PowerBi Reports deployed on PowerBi Report Server. The Script works fine untill the last line which makes the updates on the report server using the function Set-RsRestItemDataSource. The Error is 400 Incorrect Demand.
All the Echos return what I expect with no problem.
Here is my Script :
and my Error :
Part of the error is written in French and it says " the server returned an erreur : 400 incorrect demande ".
What I hid in blue is the name of my report.
I looked at this link : https://community.powerbi.com/t5/Service/Update-connection-string-via-API/m-p/1850500#M128979 and on the Internet but nothing helped my case.
I am using this version of PowerBi Report server :
and I followed the official Docs : https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis-pre-oct-2020
I tried another Script with this version of the Docs too but it didn't work for me : https://learn.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis
I would be glad if you could help me!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
3 | |
3 | |
1 | |
1 | |
1 |
User | Count |
---|---|
5 | |
5 | |
4 | |
3 | |
3 |