Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi all,
I have some issues with the above API call when a given power bi report page does not contain any visual. The api works perfectly fine on any page with some visuals, but not on an empty one. I have tried to catch an exception in a python notebook - but I was not sucessful doing that. It seems the notebook "hang" on those pages.
As these are my first attempts with Python / Notebooks - I am reaching out here for some ideas/help
Environment is Fabric / Python 3.11 and loading the module like:
Hi @csad1580 ,
You can use the Power BI REST APIs for example, Get Pages to retrieve report page metadata first, and then retrieve visuals per page. These APIs are officially documented and return structured responses for pages and visuals.
If the issue is specific to powerbiclient, it would be best to raise it in the Fabric Issues forum.
Refer this Doc Links -
https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/get-visuals
https://learn.microsoft.com/en-us/rest/api/power-bi/reports/get-pages
Hi @csad1580 ,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you
hi @csad1580 ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.
Hi
thanks a lot for your help here and sorry for my late reply.
I will check if this is an option - as I am quite new to that environment I am not sure if I can use/leverage a javascript interface in a python notebook
Hi,
I can't modify those reports - because I don't own them - so I can't delete these pages containing no visuals.
The issue I am facing is that the notebook stops working (it seems it runs in a kind of endless loop, no error messages, just "running") and the issue is cause by Powerbi-jupyter powerbiclient itself
when a given power bi report page does not contain any visual.
Delete that page.
If that is not an option:
If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |