Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Server Discussions

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

Alteryx Server Upload Script

Frederik
5 - Atom

Hey everyone,

 

I'm trying to schedule a small workflow that executes a script that uploads a local file to a Amazon S3 bucket. The workflow works perfectly fine locally but returns error code 1 when running on the server. I made sure to resolve all workflow dependencies, however, I suspect the batch script to be run from a different working directory and hence not finding the file to be uploaded. I tried specifiying the entire path to the local file and relative path but haven't had any success yet. Is there a way to pass on the local file, log the working directory of the server or straight-up refer to the local file in the batch script?

 

The batch file is a one-liner in this format:

aws s3 cp list.txt s3://company.ca.prod.projects.datafeed/list.txt

 

I can't use the built-in Alteryx S3 tools since I don't have universal access rights to the entire S3 bucket, only this subdirectory.

0 REPLIES 0