Forum Discussion
Rebinding Paginated Reports (RDLs) via the API
- 4 years ago
Hi Anonymous ,
Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.Best Regards
Lucien
Hi Anonymous ,
A 400 status code means that the server could not process an API request due to invalid syntax. A few possibilities why this might happen are:
-
A typo or mistake while building out the request manually, such as mistyping the API endpoint, a header name or value, or a query parameter. This can also be caused if the request is missing a required query parameter, or the query parameter value is invalid or missing
-
A malformed JSON body, for example, missing a set of double-quotes, or a comma. If you need to make an API request with a JSON body, I highly recommend writing it using a linter, whether you use a web editor or code editor plugin
-
The request is missing authentication information, or the Authorization header provided could not be validated
The main advice when debugging a 400 Bad Request error is to review every piece of text. Make sure there are no typos in the endpoint, headers (name and values), and body. If you copied and pasted any part of your API request, pay extra attention that they don't include any mistakes or random characters that could be causing an issue.
Our last bullet point above (missing authentication information) is a good example of something you might see when working with multiple APIs. One API might send you a 400 status code for a request that has invalid authentication credentials, while another one might send you a 401 unauthorized status code, which can be used specifically for that purpose.
The 400 bad request status code sometimes is used as a catch-all for multiple types of errors. So if you have checked your API request for any invalid syntax and haven't found any errors, try to see if any of the other 4xx status code solutions could help you with debugging.
refer :
https://docs.microsoft.com/en-us/rest/api/power-bi/reports/rebind-report
https://docs.microsoft.com/en-us/power-bi/paginated-reports/paginated-reports-faq
Best Regards
Lucien