Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We'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

Reply
csad1580
Frequent Visitor

Powerbi-jupyter powerbiclient issue with visuals_on_page api call on empty reportpages

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:

from powerbiclient import Report, models
from powerbiclient import Report
 
to get the visuals I simply do:
report_visuals=report.visuals_on_page(report_page_id)




 

6 REPLIES 6
v-sshirivolu
Community Support
Community Support

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

csad1580
Frequent Visitor

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

lbendlin
Super User
Super User

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 .

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.