Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 1QYRF0Mpsxcagbu4WV6bux
Power Automate - Building Flows
Unanswered

Create File (Flow adding slashes to my file name file path)

Like (0) ShareShare
ReportReport
Posted on 26 Sep 2019 20:16:27 by

I am working on a flow that saves 11 excel email attachments to a shared drive folder. I am getting irradicate results when I get to the 'create file' action of the flow. Sometimes the flow creates all the files I anticipate (11) and other times I'll be lucky to get half. No matter what the outcome, succesful (11 files) or failed (less than 11), I'm getting a fail/error at the create file action. It's a 400 error and from what it's showing, FLOW is duplicating the slashes of the file name file path and returning a false 'fail'.
 
Q: Does anyone know what causes the irradicate duplicative slashes in the file name file path?
 
Error Example
File name: c27a7a37-bc08-4ea0-ae94-69d563249325_Copy of MTDBOLsReceived.xlsx
 
The requested action could not be completed. Check your request parameters to make sure the path \\\\genericcompany.net\\BRZ_Shared\\GFS\\dfs\\Transportation\\P\\S drive\\BM\\AMC\\Current Month\\Attachments/c27a7a37-bc08-4ea0-ae94-69d563249325_Copy of MTDBOLsReceived.xlsx' exists on your file system.
 
But this is my file system file path:
\\genericcompany.net\BRZ_Shared\GFS\dfs\Transportation\P\S drive\BM\MC\Current Month\Attachments/c27a7a37-bc08-4ea0-ae94-69d563249325_Copy of MTDBOLsReceived.xlsx' exists on your file system.

  • ps1982 Profile Picture
    2 on 12 Apr 2022 at 08:48:38
    Re: Create File (Flow adding slashes to my file name file path)

    Not sure if it helps, but after much playing around and starting over again it turned out that I just needed to use domain/username when setting up the data gateway connection rather than username or email. 

  • ashishksi Profile Picture
    2 on 06 Oct 2021 at 07:57:39
    Re: Create File (Flow adding slashes to my file name file path)

    This error primarily occurs if the absolute path(Root Folder path provided in connection + path getting generated during file transfer) of the file to be transferred is more than 256 characters. If you limit the file path size this issue won't occur.

    Please mark as solved if you would please. It certainly worked for me!

  • obadiahjohnson Profile Picture
    106 on 17 Aug 2020 at 21:17:15
    Re: Create File (Flow adding slashes to my file name file path)

    For my issue, I found that my "connection" to the gateway wasn't set up correctly. I selected the ellipsis and selected "+Add new connection" and entered my name for the connection, default path, THIS TIME I correctly added my domain\username instead of just my username, my password, and then selected the gateway I created.  

    obadiahjohnson_0-1597698606049.png

    Once I did that, Power Automate no longer tried to "escape" the backslash character by adding a \\. 

     

    Please mark as solved if you would please. It certainly worked for me 🙂

  • obadiahjohnson Profile Picture
    106 on 13 Aug 2020 at 23:10:37
    Re: Create File (Flow adding slashes to my file name file path)

    I also have this issue. I even tried creating a string variable consisting solely of a \ but the system keeps adding them. Does anyone have any ideas on how to correct this? Maybe \ need a special character in front of them?

  • Community Power Platform Member Profile Picture
    on 22 Jan 2020 at 15:48:38
    Re: Create File (Flow adding slashes to my file name file path)

    @rdonovan my connection was good as well. I ended up abandoning the project I was working on and chose a different product to automate with.

  • rdonovan Profile Picture
    4 on 22 Jan 2020 at 14:27:46
    Re: Create File (Flow adding slashes to my file name file path)

    Thanks Lee, yeah that could be the case. 

    What's killing me is that the connection is good, and the path is selected through the UI. Pretty straight forward.

     

    The requested action could not be completed. Check your request parameters to make sure the path 'C:\Apps\Microsoft Dynamics\SL\Applications\Imports\Download\XML' exists on your file system.
    clientRequestId: 610c6616-4b53-4bb5-a226-da1889ce7eaf

     

    {

      "status": 400,

      "message": "The requested action could not be completed. Check your request parameters to make sure the path 'C:\\Apps\\Microsoft Dynamics\\SL\\Applications\\Imports\\Download\\XML' exists on your file system.\r\nclientRequestId: c267858a-1c6f-4e37-a50b-7e5322b38187",

      "error": {

        "message": "The requested action could not be completed. Check your request parameters to make sure the path 'C:\\Apps\\Microsoft Dynamics\\SL\\Applications\\Imports\\Download\\XML' exists on your file system."

      },

      "source": "filesystem-eus2.azconn-eus2-01.p.azurewebsites.net"

    }

  • LeeHarris Profile Picture
    1,026 on 22 Jan 2020 at 14:12:54
    Re: Create File (Flow adding slashes to my file name file path)

    Hi @rdonovan 

    If your file path is similar to the original one posted by @Anonymous the only thing that stands out to me is the mix of backslashes and forward slashes. Notice how the forward slash remained as single whilst all the others were doubled. It could be that the system is treating the backslash characters as part of the string and escaping them by replacing them with a double backslash.

    I am not able to confirm if this suspicion is correct but if this solves the problem for you please let me know.

     

  • rdonovan Profile Picture
    4 on 22 Jan 2020 at 13:56:24
    Re: Create File (Flow adding slashes to my file name file path)

    Did you ever find a resolution to this double slash issue? I am hitting the same thing.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started