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
fbernardazzi
Regular Visitor

Need Help with Python Script Error in Power BI Service During Dataset Refresh

Hello everyone,

I need some help with an issue I'm experiencing in Power BI. I have two queries: f_dados and W68R_MV_POWERBI_LOG_STATUS_SS. My goal is to compare text values in specific columns from these two queries.

To achieve this, I've created a Python script to calculate the similarity between these columns(Title and SOSE_NM_TITULO) . The script runs perfectly in Power BI Desktop, allowing me to refresh my data without any issues. However, when I publish the dashboard and attempt to refresh the dataset in the Power BI Service, I encounter an error that prevents the update. If I remove the Python script, the dataset refreshes successfully in the published version.

Has anyone encountered a similar issue or have any insights on how to resolve this? Here's the error message I'm receiving:

 

fbernardazzi_0-1720094639147.png

 

 

Thank you in advance for your assistance!

2 REPLIES 2
sergej_og
Super User
Super User

@fbernardazzi  There are not enough libraries in Service available.
Pls don't use Python in Service. We tried py also for other purposes bur it failed everytime.

If you have Fabric capabilities pls use Notebooks inside Fabric.
They are working fine.

Regards

@sergej_og 
Thank you for your response. It’s funny how Python seems to work with other data sources like lists, Excel, and other dataflows, but it consistently encounters issues with this particular one. Unfortunately, I do not have access to Fabric.

Thank you for the alert about using Python, but I am unable to use Fabric due to lack of authorization.

Regards

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.

Top Solution Authors