Alteryx Server Discussions

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

AWS CLI Commands (via Run command tool) stopped working from Gallery. Error Code 255

januV
5 - Atom

Hi all

I have a workflow that uses Run Command tool to execute a .bat file containing AWS CLI commands to download/upload files to S3. It was working perfectly fine until today and now the workflows are erroring out with "

The external program "C:\XXXXXXX\yyyyyyyyyy\ListFiles.bat" returned an error code: 255". verified that from the Gallery able to access the file path and write to it.

 

 

Below is the .bat file content.

cd\
cd program files\amazon\awscliv2
aws configure set aws_access_key_id <INSERT ACCESS KEY HERE> && aws configure set aws_secret_access_key <INSERT SECRET KEY HERE>
aws s3 mv s3://<BUCKET> <FILE PATH> --recursive

 

The above worked before and now works perfectly in my local designer and the designer in Alteryx Server. 

Any help/info is appreciated

1 REPLY 1
fmvizcaino
17 - Castor
17 - Castor

Hey @januV ,

 

The only thing I can think of here is the credential being used not having access to the proper program or something like that.

Is it possible for you to add your credentials when running the workflow? 

 

This is something your admin must configure so your server can accept user credentials: https://help.alteryx.com/20231/server/select-workflow-credentials-settings-your-server

This is how you add credentials to a workflow: https://help.alteryx.com/20231/server/save-workflow-server

 

Best,

Fernando Vizcaino