Power Automate – Create File action – resolving error – Error code: ‘400’, Message: ‘The requested action could not be completed. Check your request parameters to make sure the path ” exists on your file system.

Power Automate - "Create File" action - creating connection to File System from Power Automate
Power Automate - "Create File" action - creating connection to File System from Power Automate

Hi All,

Greetings for the day 🙂 LIFE IS BEAUTIFUL 🙂

Today new issue and solution 🙂

Background / Details :

  • In our organization we have one request from one of our user for downloading the file from SharePoint online site document library to local machine (server)
  • Since this is continuous process we need to automate this process and hence the Power Automate comes into the picture
  • As we need to download the file on local machine / server we require On-premises data gateway
  • Detailed article on On-premises data gateway is on its way 🙂 stay tuned 🙂
  • We have successfully installed On-premises data gateway
  • Started creating Power-automate
  • We are using “Create File” action of Power-automate as
Power automate - "Create file" action to create file on local system / server
fig : Power automate – “Create file” action to create file on local system / server
  • To use this action we need to create / use connection to File System as shown in below figure
Power automate - "Create file" action - creating connection to File System
fig : Power automate – “Create file” action – creating connection to File System
  • We need to set following properties
    • Authentication Type – Windows
    • Username and Password
Power Automate - "Create File" action - creating connection to File System from Power Automate
Fig : Power Automate – “Create File” action – creating connection to File System from Power Automate
  • When we click on “Create” button we are getting an error as shown in above figure

Error / Issue :

Error code: ‘400, Message: ‘The requested action could not be completed. Check your request parameters to make sure the path ” exists on your file system. clientRequestId: 764B8BD4-2C7A-41A6-826C-889611929224’. More diagnostic information: x-ms-client-request-id is ‘764B8BD4-2C7A-41A6-826C-889611929224’.

Solution :

  • After bit googling it found that we didn’t specified domain while specifying Username
  • As we specified domain for Username, it worked like charm. In our case – WORKGROUP\prasham as
Power Automate - Creating connection to File system - specifying domain for Username
fig : Power Automate – Creating connection to File system – specifying domain for Username
  • As we specified DOMAIN with Username, connection created successfully
  • We are able to fetch folders from local file system as
Power Automate - Creating connection to File system - selecting local folder to download / create file
fig : Power Automate – Creating connection to File system – selecting local folder to download / create file
  • Selecting folder from local drive
Power Automate - Creating connection to File system - selecting local folder to download / create file
fig : Power Automate – Creating connection to File system – selecting local folder to download / create file

Thanks for reading 🙂 HAVE A GREAT VACATIONS AHEAD 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: