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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.