web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error: "Fail to read E...
Power Apps
Unanswered

Error: "Fail to read Excel workbook content" after editing data source using Python script

(1) ShareShare
ReportReport
Posted on by 4

Hi, 

I have an Excel database (table) connected as a data source in Power Apps, and I'm searching / editing the database from the app. Normally, the edit form and submit form operations work when I am just accessing the data source via Power Apps.

However, when I tried editing the Excel database outside of Power Apps using a Python script (openpyxl package), and then tried to edit the database from Power Apps again, I got the following error: 

 

powerapps error.PNG

 

I have repeated this workflow with a brand new Excel file and confirmed that the error happens after I run the python script to edit the Excel sheet. Is it possible that there is an edit conflict? I am building this for RFID applications and I need to be able to write to the database continuously from Python while also accessing it via Power Apps. Any help is appreciated. Thanks!

 

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ashman123 

    I have no idea what Python does to an Excel file but you could try using Power Query to recreate the table afterwards and see if it can be read by PowerApps.  Otherwise, I would suggest you try to find out more about Python and Excel.

  • Ozzbuzz Profile Picture
    3 on at

    Hello! I am currently facing the same issue. I'm not sure if the error is related to openpyxl having all empty cells as "None" type values. I tried writing an empty string value in the None type cells with no positive result. Is there any other turnaround for this issue? 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard