cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DavyNix
Helper I
Helper I

Copy attachment from Email to shared folder - The character '"' is not allowed in file paths

Hi All,

 

Have written an simple flow to copy an attachment from an inbound Email to a folder share (via on-prem gateway).  When I test the flow I'm getting the error:  The character '"' is not allowed in file paths, remove or replace it before retrying.
clientRequestId: 70e5c747-bbd5-405b-ad48-ad816ff34447

 

The path doesn't have " character within it.  Checked and double checked!  It does have a hyphen but that should be ok right?

 

DavyNix_0-1638809913603.png

If I change the path to have a final slash (\\XX1-FileServer\Office-ABC\FTP\FTP) then the flow doesn't return the error, but just times out with: Internal Server Error

DavyNix_2-1638810215902.png

What am I doing wrong?! 

Thanks in advance for any help...

1 ACCEPTED SOLUTION

Accepted Solutions
miguelcas
Microsoft
Microsoft

Hi @DavyNix 

 

I'm going to help you with your issue. First, I saw in your screenshot that your trigger it's not including the attachments. Second, we need to use the Create File action to create a new File in your folder because the email is arriving with a new file. Please Take a look to the following flow as an example.

 

miguelcas_0-1638820388191.png

 

miguelcas_2-1638820441921.png

 

Let me know if this works for you.

 

Thank you for using Microsoft Power Platform Communities.
Community Support Team - Miguel Castro.
If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
miguelcas
Microsoft
Microsoft

Hi @DavyNix 

 

I'm going to help you with your issue. First, I saw in your screenshot that your trigger it's not including the attachments. Second, we need to use the Create File action to create a new File in your folder because the email is arriving with a new file. Please Take a look to the following flow as an example.

 

miguelcas_0-1638820388191.png

 

miguelcas_2-1638820441921.png

 

Let me know if this works for you.

 

Thank you for using Microsoft Power Platform Communities.
Community Support Team - Miguel Castro.
If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

 

 

DavyNix
Helper I
Helper I

Hi @miguelcas , thanks for the reply. I'm getting the error below.  It seems to be adding a / to the path.

and then displaying the error:  The requested action could not be completed. Check your request parameters to make sure the path 'C:\OnPremGateway\SB/new 2.txt' exists on your file system.
clientRequestId: 05f76566-a403-4a6b-9081-f0ee6d3b1f71

DavyNix_0-1638891479305.png

The attachment name is correct so I feel we're getting closer!

DavyNix
Helper I
Helper I

@miguelcas  Ignore me  - this second issue was caused by me not entering the user name correctly! User name must be Domain/username and not just UserName !!  Thanks for your help 🙂

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,406)