SOLVED
Set the Execution order
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Teknion
5 - Atom
‎01-07-2015
05:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am have some issues get the order of execution correct. I have 5 files that are read in using a Alteryx App., Later in the flow I ahve a run command that moves the files to an Archive folder. My problem is: Alteryx will archive the files prior to reading all of them in. Sometime I get lucky and this is not a problem, but when it becomes a problem, I need to know how to set a predecessor or a run order.
Thanks!
Solved! Go to Solution.
Labels:
- Labels:
- Run Command
- Workflow
3 REPLIES 3
sphwillis
7 - Meteor
‎01-07-2015
07:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can you use a chained app so 'on success' the second app will archive the files? or maybe insert a block tool before archiving?
ChadM
Alteryx Alumni (Retired)
‎01-07-2015
08:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Another option would be to use the Events and set your run command script to run after the module completes. You can find the Events tab under Module properties:
Next, set your event to run after the module completes, or with or without errors:
ACE Emeritus
‎01-13-2015
09:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I've run into the same issue with the Run Command Tool running out of the order I intend.
The solution offered by cmartin is great but if you are in a situation where the Run Command has to live inside of your module I have had success connecting a dummy input into the command tool and placing a Block Until Done in line.
In the picture below, the dummy input is just the first row of data peeled off of the data stream. I need my Run Command to execute after the .csv is written. The dummy input keeps it "in order" and the Block Until Done makes sure the file gets written before the stream continues.
The solution offered by cmartin is great but if you are in a situation where the Run Command has to live inside of your module I have had success connecting a dummy input into the command tool and placing a Block Until Done in line.
In the picture below, the dummy input is just the first row of data peeled off of the data stream. I need my Run Command to execute after the .csv is written. The dummy input keeps it "in order" and the Block Until Done makes sure the file gets written before the stream continues.

