Error while running .bat file on Alteryx server
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi all,
I am trying to trigger an event using .bat file in alteryx workflow.
It works fine on desktop.
But while running on gallery , its throwing an error
" The external program "_externals\1\abc.bat" returned an Error code 1'
Any help?
Thanks
Harsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I believe for security reasons, Alteryx won't let you run bat files (or anything using Windows Run command) from the server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Any solution to it? Is there any way i can resolve it? I have to use .bat file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@harsha384 did you get the solution? if so please share it here, and would really helpful as I'm currently facing the same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am able to run my own BAT file, but I had to write the code and place the BAT file in the temp folder. This is for an app that I've published to my company's Gallery. The app always creates a BAK file in the destination folder, so I created a temporary BAT file that deletes that BAK file.
As seen here, I have:
- A subroutine that generates the code in the BAT file
- An Output Data tool that creates the BAT file in the temp folder
- A Run Command tool that runs the BAT file
This is the config of my Output Data:
And this is for the Run Command tool:
