Forum Discussion
OPB12
3 years agoFrequent Visitor
change connection string via power shell bad request error
Hi, I use the script to change data source . Change data source connection strings with PowerShell - Power BI Report Server pre-October 2020 - Power BI | Microsoft Learn but i am getting thi...
Sahir_Maharaj
3 years agoSuper User
There can be multiple reasons for this error, including incorrect URL, incorrect header values, incorrect request body, etc. To resolve this issue, you can try the following:
1. Verify the URL being used to make the REST call. Ensure that it's correct and points to the correct Power BI Report Server instance.
2. Verify the header values being used in the REST call. Ensure that they're correct and match the expected format.
3. Verify the request body being sent with the REST call. Ensure that it contains the correct values and that they match the expected format.