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 / Replace/Remove special...
Power Automate
Answered

Replace/Remove special character from attachment uploaded in Sharepoint List

(0) ShareShare
ReportReport
Posted on by 74

Hi Experts,

 

I'm having a flow to save attachments uploaded by users. My issue is if the attachment has some special character that not allowed then the flow don't run.

~, #, %, & , *, {, }, \, :, <, >, ?, /, |, "

 Can anyone help me on how to remove these characters

 

1.png

2.png

 

1.png

2.png

Categories:
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @AnPhamEFL 

     

    You basically want to create an array of the invalid characters and then with an apply to each, replace each of them with nothing.

     

    There is an article here explaining how to do it:

    https://www.alanps1.io/power-platform/flow/flow-stripping-unwanted-characters-or-special-characters-from-a-string/

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • AnPhamEFL Profile Picture
    74 on at

    Hi @DamoBird365 

     

    Thank you for your suggestion, do you have any advise on below error.

     

    3.png

  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @AnPhamEFL 

     

    You are calling the Current Item outside of your apply to each.  It applies to the loop and so any reference to it must be within that loop.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @AnPhamEFL 

     

    How are you getting on?

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • AnPhamEFL Profile Picture
    74 on at

    Hi @DamoBird365 

     

    Sorry for the late reply, thank you so much for your 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard