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 / Power automate fail at...
Power Automate
Unanswered

Power automate fail at saving attachment because of special characters

(0) ShareShare
ReportReport
Posted on by 6

Hello guys,

Lets get straight to it, the logic behind the flow is as follow : 

1: Retrieve email message (success)

For each

2: Create a folder C:\...\%CurrentItem.Subject% (success)

3: Retrieve email message (???)

3.1: Email filter (???)

3.1.1: "subject" contains: %CurrentItem.Subject% (???)

3.1.2: Save attachments into C:\...\%CurrentItem.Subject% (???)

 

Trying to fix the problem I use split/trim/replace to create a clean folder but even then the "retrieve email messages" operation that save the attachment fail to save them in that folder without throwing me an error.

A subject with "Montréal" in it or "salle à manger" for instance break the whole thing... and when I process multiple emails at the same time, it creates a mess.

Im running out of ideas to debug it. Thanks for the help guys. 

I have the same question (0)
  • Riyaz_riz11 Profile Picture
    4,214 Super User 2026 Season 1 on at

    Hi @Matt_PMAinc ,

     

    Can you please check the path what you provided in msg box, so you will get more clarity where it was missing.

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Matt_PMAinc Profile Picture
    6 on at

    PA_prob-01.jpgPA_prob-02.jpgPA_prob-03.jpg

  • Riyaz_riz11 Profile Picture
    4,214 Super User 2026 Season 1 on at

    See in first itself you are retrieving mail right, so there it will unread all mail, and again you are trying to retrieve mail, so the mail is empty.

    Check the second retrieve mail count you will get zero only, because you are reading mail first itself.

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Matt_PMAinc Profile Picture
    6 on at

    In both case the mails are not marked as read. So they should be retrieved, either way.

    Plus, it works when there isnt a special character in the subject. Try it for yourself, its a pretty small flow just for the sake of debugging.

    Matt_PMAinc_0-1654607368683.png

     

  • Matt_PMAinc Profile Picture
    6 on at

    giphy

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard