Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Power BI report is not embedded #37

Closed
yashgMAQ opened this issue May 18, 2023 · 1 comment
Closed

Exception: Power BI report is not embedded #37

yashgMAQ opened this issue May 18, 2023 · 1 comment

Comments

@yashgMAQ
Copy link

I try to open the PowerBI report but it gives error

Exception Traceback (most recent call last)
Cell In[12], line 1
----> 1 pages = report.get_pages()
2 display(pages)

File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\powerbiclient\report.py:562, in Report.get_pages(self)
556 """Returns pages list of the embedded Power BI report
557
558 Returns:
559 list: list of pages
560 """
561 if not self._embedded:
--> 562 raise Exception(self.REPORT_NOT_EMBEDDED_MESSAGE)
564 # Start getting pages on client side
565 self._get_pages_request = True

Exception: Power BI report is not embedded

@bapat-atharva
Copy link
Contributor

Hi @yashgMAQ, get_pages operation requires the report to be rendered first. Please run report on a cell to embed it, and then call the method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants