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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Python Script ErrorCode=-2147467259 While I Want To Transform a Data From Restricted Google Sheet

DataSource.Error: ADO.NET: A problem occurred while processing your Python script. Here are the technical details: [DataFormat.Error] N_A Details: DataSourceKind=Python DataSourcePath=Python Message=A problem occurred while processing your Python script. Here are the technical details: [DataFormat.Error] N_A ErrorCode=-2147467259 ExceptionType=Microsoft.PowerBI.Scripting.Python.Exceptions.PythonUnexpectedException

This happens while i want to cleaning the data from Power Query using Python Script that the data source was from G-Sheet. I already check the script using other G-Sheet files and it runs, but whenever i try using restricted (only viewer not editor)

befat_2-1694879143201.pngbefat_3-1694879165927.png

 

 G-Sheet it gets that error. But when i transform/clean the data without python script (only using power query)

befat_1-1694879018410.png

 

it runs perfectly. I really need to used Python Script for my project report is there any other way to done it with python script?

 

1 REPLY 1
lbendlin
Super User
Super User

Remove the N/A  fields from your Google Sheets source.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.