SharePoint Document Issues

Fix an Excel File Corrupted by a Power Automate Upload to SharePoint

Huma Ashraf ChHuma Ashraf Ch Nov 13, 2026 869 views

Question details

Identify why a Python-generated Excel workbook becomes unreadable after a Power Automate flow uploads it to SharePoint.

Fix an Excel File Corrupted by a Power Automate Upload to SharePoint
Product
Microsoft SharePoint, Microsoft Excel, and Power Automate
Device & OS
not provided
Scenario
A Python script generates an Excel workbook that a Power Automate flow uploads to SharePoint.
Observed behavior
The workbook may open locally but is unreadable after the flow uploads it to SharePoint.
Before you start

Confirm that the original Python-generated workbook opens locally, and locate the SharePoint library and Power Automate flow used for the upload.

Solution 1Recommended

Test the Workbook with a Manual SharePoint Upload

Use the same local file to determine whether the issue is associated with the flow.

1
Upload the original file

Open the target SharePoint document library, select Upload > Files, and choose the same workbook that opens locally.

2
Open the uploaded workbook

Select the manually uploaded workbook in the library and check whether it opens. If it opens, the flow's file-content or upload actions are likely involved.

3
Compare other files and sites

Use Upload > Files to test another workbook in the same library and, if available, upload the original workbook to another SharePoint site. Compare which copies open.

Test the Workbook with a Manual SharePoint Upload
If the manual upload also fails: Check the workbook's format and the Python script that generates it. Testing another file or site can help narrow down whether the issue is specific to the workbook or location.
Free Microsoft Office alternative

Open and Review Excel Workbooks with WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface for opening and editing compatible files. It supports a smooth move between common Office formats, although it does not repair Power Automate or SharePoint upload actions.

Open and review Excel workbooks in WPS SpreadsheetsCompatible with Microsoft Excel formats including XLSX and XLSFamiliar spreadsheet interface for an easier transitionFree and lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does the workbook open locally but not after the flow uploads it?

The flow may be passing altered or incorrect file content to SharePoint. Upload the same local file using the library's Upload > Files option; if that copy opens, inspect the flow's file-content and upload actions.

How can I tell whether the issue affects just one workbook?

Upload another known-working workbook to the same SharePoint library, both manually and through the flow if practical. Compare the results with the original workbook.

What should I check in Power Automate?

In the flow's Run history, inspect the actions that retrieve the workbook and create the SharePoint file. In the flow editor, check the Create file action's File Content input and any expressions or conversions applied before upload.

Can WPS Office fix the SharePoint upload flow?

No. WPS Spreadsheets can open compatible Excel workbooks, but the Power Automate flow and SharePoint upload actions must be diagnosed separately.