HI Team,
I am exploring moving files (cut paste) functionality in Alteryx using Run command tool. and I successfully moved files one folder to another folder. But when i am trying to achieve this on network drive, files are getting deleted from source folder but not moving to destination folder.
Can someone help how can we achieve moving files on network drive.
I have used same below workflow as reference just changed file paths.
Looks fine, and so unless it's some funky thing with the MOVE command (I didn't think that was an issue, but seem to remember having to use XCOPY years ago).
Check whether they are mapped drives.
I'm assuming this is on your desktop, that the running user is not going to be an issue.
Can you perform the move in File Explorer?
I’ve run into this before—network drives can behave differently than local folders because of permissions and network latency. Make sure the account running the Alteryx workflow has write permissions on the destination folder. Sometimes adding a small delay before the move command helps, especially if the network is busy.
@sparkle
I think the issue will be the directory/drive you're running the command from.
As you're writing your .bat script to your temp drive, see if you can run a copy file (rather than move) command from the command line?
In windows explorer, type "%temp% into the address bar to navigate to your temp drive.
Then write "cmd" into the address bar and hit enter to open commandline from that location
Then take, say the first row of your [Command] column, change "Move" to "Copy" (so you don't lose the original file) and see if that command will run from the temp location.
If it does, then try with "Move" rather than "Copy"
HI @OllieClarke.
Thank you for your comments.
Can you please configure run command tool for me. I have tried to change location, but no success. Please note, below are the location details and workflow for moving files.
Input location : \\pu-cdot02-corp01\home\mamtal\microtesting\IP
output location: \\pu-cdot02-corp01\home\mamtal\microtesting\Archived
Hi @sparkle
Your run command tool looks to be set up correctly for your current command, but we don't know if that command works from the temp drive or not.
Can you go through the steps I outlined in my previous comment and let us know what happened?
HI @OllieClarke
I tried to open cmd from Temp folder and tried with copy command, but it shows error "The system cannot find the file specified".
Please see my command: copy "\\pu-cdot02-corp01\home\mamtal\microtesting\IP\Micro_Center_MIC_INV-2025-09-21.xlsx" "\\pu-cdot02-corp01\home\mamtal\microtesting\IP\Archived"
I would say that probably holds your answer then. Some kind of permission etc, as that command should work if you have access.
Try navigating to the file in cmd and investigate why it can't find that file. If the command won't work when running it in cmd, it won't work in the Run Command.
So, your option is to either get the command working from there, or change the location of the bat file to somewhere it does work, such as on that drive. That does make it somewhat less dynamic though.
Try changing "%temp%\RunCommand.bat" to "\\pu-cdot02-corp01\home\mamtal\microtesting\IP\RunCommand.bat". That may not be best going forward, but it'll help you to find this issue.
User | Count |
---|---|
106 | |
85 | |
76 | |
54 | |
40 |