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 Platform Community / Forums / Power Automate / Using On-Premises Gate...
Power Automate
Unanswered

Using On-Premises Gateway, File System Connector, saving attachments, Writing Path with double "\\". 400 error

(0) ShareShare
ReportReport
Posted on by 228

I have a File System Connector for an On-Premises Gateway.

That gateway is mounting a file server as drive letter "P:\" .

The File System Connector is mapping Root as "P:\COE OP\PO Files\"

In another solution I could use the "Create File" component and have a folder name such as "abc12" for Folder Path and the link  would test as be "c:\flow\abc12" and the file would be saved.

 

I'm not sure why this isn't working now. I get a 400 error.

If I define the full path like:

P:\COE OP\PO Files\<expression value>

then the test result is

P:\\COE OP\\PO Files\\TW6x

 

If I define the path with just \TW6x\ , it writes  '\\TW61\\' as the  400 error

If I define the path with just TW6x like I have done in the past, it writes  'TW6x' as the  400 error. (This method has worked in the past as the result should be: P:\COE OP\PO Files\TW6x)

 

Why do I have double forward slashes?

See images below:

Thanks in advance!

 

111.PNG

 

Categories:
I have the same question (0)
  • Christopher S Profile Picture
    on at

    Hi @r96359 

     

    Can you please confirm if when you were creating the connection, on the user field you indicated DOMAIN\USER? This is one of the common reasons for this issue.

     

    Best Regards

    --

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions help users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • r96359 Profile Picture
    228 on at

    My File System Connector was set up with domain/username.

    I changed it to just username and I still get // for every directory path.

    Sometimes I will even get a forward slash / for the <expression folder>/attachment pdf.

     

    When stated in create file folder path as full path:

    P:\COE OP\PO Files\<expression>

    I get this:

    P:\\COE OP\\PO Files\\TW61/202003311142xxxx.pdf

    Not sure why Flow is returning forward slashes now?

     

    When I changed the directory path to just the expression of the subfolder from root I get a forward slash for test result

    "TW61/20200331114230428xxxx_1.pdf"

     

    When I changed the directory path as a / the result looked good but still error-ed:

    Folder path = /<expression>

    I get this:  

    "The requested action could not be completed. Check your request parameters to make sure the path '/TW61/20200331114230428978365_1.pdf' exists on your file system.\r\nclientRequestId: 85f5fe6f-84a4-47fa-a9fd-8e60fe089c56""
     
    I feel like this is a moving target.
    Help is appreciated! 
     
    222.PNG
     
     
  • r96359 Profile Picture
    228 on at

    I still can't figure out why this doesn't work.

    When I setup an on-premise gateway on my laptop, all is good.

  • r96359 Profile Picture
    228 on at

    @chsanche 

     

    Are you speaking of the "File System" Data Connector or the On-Premises Data Gateway?

    On the "File System" Data Connector I believe I am using domain\user.

    If the user field is indicated as domain\user, what would be the proper way of configuring user?

     

    Thanks for the reply.

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