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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. 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
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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.