In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

Run command "xcopy" return an error code:4

xihan
6 - Meteoroid

I wrote an .bat file and run command to copy all the files from one directory to another folder (I used xcopy command), which run successfully on Alteryx Designer. But when I upload it onto server, I received an error message "The external program "xxxxx xcopy.bat" returned an error code: 4 (Tool Id: 63)". Please help. Or any other way to do this?

4 REPLIES 4
apathetichell
20 - Arcturus

xcopy.bat or xcopy.exe? xcopy.exe would be on a different location on server than your local machine. Your .bat file is probably looking for it in your local machine's location.

 

 

Luke_C
17 - Castor
17 - Castor

To add-on, are the folders you're trying to manipulate accessible by the server? Are there permissions for the server to execute commands? I had to work with IT for both of these things when setting up commands on the server. 

xihan
6 - Meteoroid

The server definitely have the highest level of permissions. I do not know why it happens like this. But I have temporarily solved it by using the blob input and output tool instead of writing xcopy.bat.

ArtApa
Alteryx
Alteryx

@xihan - It is also worth checking Run As settings. As the user, which runs the Alteryx Server service may not have all necessary permissions:

ArtApa_0-1661744185305.png