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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Automatic refresh using a Python script that contains environment variables

I am getting an error when trying automatically refresh my report that is using a Python script that contains os environment variables. No issue when running the refresh within the report. I can't provide the error message at this time as it looks like Power BI is having an issue refreshing all Python scripts. I have tried this script on seperate servers. One server it couldn't read any of the os environment variables while the other server it was able read all but one os environment variable.

1 REPLY 1
lbendlin
Super User
Super User

needs more details. Is the personal gateway installed and running?  What's the rationale behind needing to retrieve OS env variables? Which machine do you expect these values to come from?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors