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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Export Paginated Repor...
Power Automate
Answered

Export Paginated Report to sharepoint cause error in the file

(2) ShareShare
ReportReport
Posted on by 4
Hi and thx's for reading this.

I have a flow where i use "Export to File for Paginated Report" and after that i have "create file".
The flow runs and create an Excel file on the right URL  but the file when i open it on sharepoint gives and "error message".
 
The strange part is if i download the file that gives the "error message" to (my download folder) it works as it should
Anyone have any good solution for this

/Thanks so much.
 
 
Create file parameter
 
 
The Flow:
 
The "error"


 
I have the same question (0)
  • Verified answer
    nmantzarea Profile Picture
    20 on at
    In your Create File action, try to change the File Content to the following expression:
     

    base64ToBinary(body('Export_To_File_for_Paginated_Reports')['$content'])

    This ensures the file is written as proper binary rather than base64-encoded text, which is likely causing the corruption error.

    Hope it works.

  • Suggested answer
    Haque Profile Picture
    3,653 on at
    Hi @ML-27061621-0,
     
    Apart from the base64ToBinary suggestion above, in the "Create file" action we need to make sure the file name parameter is valid string ending with chosen extension (say .xlsx). Its good that you have used body output for file content
     
    From integrity point of view -  can you please download the file from SP and open localy to verify integrity?
    Accidental point of view: Please double-check you are not accidentally passing the file content as the file name.
     
     
    Though its bit of PowerBI related, can you please check this thread if you have followed the right approach to create file action?
     
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
     
  • ML-27061621-0 Profile Picture
    4 on at
    Thanks both for the help and suggestions.

    Worked with this suggesion , Thanks @nmantzarea fo the help.
     
    base64ToBinary(body('Export_To_File_for_Paginated_Reports')['$content'])

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard