Fix SharePoint Cannot Preview Files Uploaded via Power Automate
Question details
Files uploaded to SharePoint using a specific Power Automate connector cannot be previewed, while files uploaded through a different connector process correctly.
- Product
- SharePoint and Power Automate
- Device & OS
- not provided
- Scenario
- Automating the retrieval of email attachments and uploading them to a SharePoint library using Power Automate flows.
- Observed behavior
- Files (including PDFs) uploaded via one connector fail to preview in SharePoint across all browsers, suggesting a connector-specific corruption or configuration issue.
Ensure you have site administrator permissions for the destination SharePoint library and access to edit the Power Automate flow.
Rebuild the Flow and Re-add the Affected Connector
Removing the faulty connector and rebuilding the upload step often resolves metadata or corrupt transfer issues causing preview failures.
Often, preview failures happen because the 'File Content' is incorrectly mapped during the upload process, causing the file to become corrupted. Re-adding the connector ensures a clean configuration.
Open your Power Automate flow in edit mode and delete the specific upload action that is failing to generate previews.
Add a new SharePoint 'Create file' action and reconfigure the site address and folder path.
Ensure the 'File Content' dynamic content exactly matches the attachment output from the email trigger (binary data), not just the file name or string metadata.
Compare Connectors and Verify Upload Permissions
Since one connector works and another fails, comparing their configurations can pinpoint missing permissions or incorrect file transfer settings.
Manually Verify Source File Integrity
Rule out source file corruption by manually downloading and testing the problematic email attachments.
Try WPS Office for Seamless Document Management
If you frequently encounter issues with SharePoint previews or complex automated workflows, consider managing your documents locally or through reliable cloud drives with WPS Office. It provides a lightweight, highly compatible alternative for handling PDFs, spreadsheets, and presentations.
- 1. Download WPS Office: Install WPS Office for free from the official website.
- 2. Open your documents: Launch WPS Office and directly open your downloaded PDFs, Word, or Excel files without relying on browser previews.
- 3. Edit and save: Make your necessary edits and save the files locally or sync them to your preferred cloud drive.

Frequently Asked Questions
Why does SharePoint show a preview error for PDFs uploaded via Power Automate?
This usually happens when the 'File Content' field in the Power Automate 'Create file' action is mapped incorrectly, causing the file to upload as corrupted or Base64 encoded instead of its native binary format.
Does changing the browser fix SharePoint preview issues?
If the file was corrupted during the Power Automate upload process, changing the browser will not resolve the preview issue. The underlying file transfer configuration in the flow must be fixed.
How can I tell if the uploaded file is corrupted?
Manually download the file from SharePoint to your local device. If it fails to open in a desktop application like a PDF reader or Word, the file was corrupted during the upload process.
Can connector permissions affect file previews?
Yes, if the connector lacks the appropriate permissions to write file metadata properly, SharePoint may fail to index the file correctly, resulting in preview generation failures.




