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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Refresh data from Python stuck in "Evaluating..."

Hi.

I have an issue trying to refresh data from a python script.

 

The script I use is an API integration from Pagerduty to Power bi, and it used to work, but now it get stuck in "Evaluating..." for hours!

Esteban__0-1659543898029.png

this is a script i didn't run since january, so i think could be an update from Python or Power Bi which is creating this problem

 

The script is the one in this link: 

https://community.pagerduty.com/forum/t/integration-with-powerbi-for-dashboarding/1940/14


I followed all the instructions from docs. (https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-scripts)

I already reinstalled Python (with pandas, matplotlib)

 

Has anyone had something similar happen?

1 ACCEPTED SOLUTION

Hi @Anonymous,

In fact, power query also supports paginated API, you can take a look at the helper function if helps:

Helper functions for M extensions for Power Query connectors - Power Query | Microsoft Docs

In addition, you can also take a look at the buffer functions if your scenario is related to the memory spent on looping calculations:

Chris Webb's BI Blog: New Options For The Table.Buffer Function In Power Query Chris Webb's BI Blog (crossjoin.co.uk)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

I'm not so clear why you nested use data connector and python script to get data, which version of power bi desktop are you tested? Can you please share some more detail?

How to Get Your Question Answered Quickly   

BTW, current power bi can directly use a web connector to get data from the rest API.

Solved: Pull data from RESTful API with token authenticati... - Microsoft Power BI Community
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi, thanks for your answer.

I use python because i need to make a loop to the api for paginate.

 

The version I have is:

Versión: 2.108.603.0 64-bit 

 

after a long time it only show this message:

Esteban__0-1660064730661.jpeg

 

 

as i wrote before, the script used to work but suddenly it get stuck. in evaluating.

 

Thanks!

Hi @Anonymous,

In fact, power query also supports paginated API, you can take a look at the helper function if helps:

Helper functions for M extensions for Power Query connectors - Power Query | Microsoft Docs

In addition, you can also take a look at the buffer functions if your scenario is related to the memory spent on looping calculations:

Chris Webb's BI Blog: New Options For The Table.Buffer Function In Power Query Chris Webb's BI Blog (crossjoin.co.uk)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi. I have been searching for examples of the use of getNextPage for API, but can't find it.

 

Do you have any example?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.