Stopping a part of Workflow when a condition fails
- 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
I am working on a workflow with 2 streams that are populating 2 different tables. I want to stop one stream if there is no data for the first table but do not want to stop the other part populating the the second table.
I tried using test tool but that stopped the whole workflow and second table was also not populated. Is there any better way to do this?
- Labels:
- Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Interesting challenge. You could do something using a block until done tool.
The outputs of this are sequenced so you could ensure the table you want to write to is attached on output 1
The one that should conditionally be written to could be after a test tool on output 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The only issue in this approach is as the test tool is between the workflow, as soon as that fails the workflow stops even before it reaches to the output tools.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@prachigupta93 - I have tried to replicate this scenario using 2 text inputs (one with data and one without ) and create 2 files based on a condition . If you run the workflow the second container which creates the fle , would fail and not create the file as there is no record flowing in but the first one would continue running and create a file . Hope this helps . Can you try this approach ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @ramesh_neel
I think what @prachigupta93 is trying to achieve is if there is no data from one the stream it should not execute only that part of the workflow. Message tool error will stop the whole workflow. Not just a part of it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Is there any solution for the problem in Version: 2023?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@ramesh_neel : I was going through the solution and here I am just using the message tool. Do we keep AMP check/uncheck ? Any other settings to keep in mind ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
use the test tool to create a test if the number of rows is not zero (you will need to use a count records tool and then set it to not equal to zero) and then set on your workflow stop if error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
