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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sklein
Regular Visitor

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors