Forum Discussion
Embedding paginated reports error: Unable to render paginated report
- 3 years ago
Hi Anonymous ,
This error usually means that the embed token wasn't generated correctly.
If you have a paginated report with a Power BI dataset as a data source you should use V2 embed token (AKA multiresource embed token), which are generated using this API Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Learn. The request should include the dataset ID and like this example Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Anonymous
I believe you're right, AFAIK there isn't a good way to retrieve the dataset ID programatically.
The only possible way is to call v1.0/myorg/reports/{reportId}/datasources and parse the dataset ID from the response. It is there but requires some parsing to extract it since its not retruned as a seperate parameter.
It might be best to raise an idea for this issue through PowerBI's ideas site https://ideas.powerbi.com/