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 Automate
Unanswered

Corrupted file

(0) ShareShare
ReportReport
Posted on by 10

Hello there,

I'm currently facing an issue that's becoming quite frustrating. The task seems simple: whenever a file is created within a specific OneDrive folder, I need to send an email with the newly created file attached. However, despite my efforts, the attached file appears always as corrupted when opened.

If anyone has insights or suggestions on how to resolve this issue, I'd greatly appreciate your help. 

Thanks.

 

Ps: Some of my screenshots are in Portuguese, but I think the idea is clear.  

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

    Hello @JoseLopes2000 

     

    normally the problem is somewhere with base64 or the object not in the correct format.

     

    Can you show the steps and how you provide the attachment value in the email step?

  • JoseLopes2000 Profile Picture
    10 on at

    Hello @Matthy79 ,

    Yes I tried to use, for example, the base64ToBinary() function, but it didn't work.

    I send you attached the relevant prints. One is from the trigger: "When a file is created", the other two are from the action: "Send an email" with the respective code.

     

    Thank you for the help!!

     

     

  • Verified answer
    Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    OK, I see the problem. You use the new designer. That doesn't work for a lot of actions. Switch to the classic designer and do the same thing you did before for adding the attachment (I think you used dynamic content for filename and content). After that save the flow again and it will work. If you now open it in the new designer you will see that the base64ToString will be gone.

  • JoseLopes2000 Profile Picture
    10 on at

    Ok that was the issue, thank you so much for the help!!

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard