- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2020 02:15 PM
Hello everyone,
I have a flow where i execute several actions, the output form the action looks like this:
Output setup of vm-dcom-setup:
My if statement in the flow, says "If output doesnt contain failure=0" create a catalog task
When the testing, the flow gives an error after getting past the vm-dcom-setup step:
Operation(RITM/Server Decommission.If$2.evalConditions) failed with error: com.snc.process_flow.exception.OpException: unable to evaluate condition for /if/_0_ebff81971b1ca45095efbbbc0a4bcbfc = {{803c0982-de2c-427d-9f86-bec9354ab105.variable}}NOT LIKEfailed=0 is not a valid conditional expression
Does anyone have an idea of why its not evaluating my condition? |
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2020 04:08 PM
It seems like a problem with the output variable type.
I've tried with outputting a String and didn't get any error. The thing that seems odd is the output variable name of the Script step being "Outputs". In my instance, names are converted to lowercase. Also, having a name "outputs" would require a statement "outputs.outputs" in the script step to set a value because "output" is a name of one of the parameter in method execute(inputs, outputs).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2020 10:16 PM
Hi,
You can test your flow on the flow designer itself using the test button.
After the test is performed it will show a message show it has executed the flow like this : -
You can click on the click here message which will open the execution details of the flow there can you find why the if statement is not being evaluated.
Thanks,
Sourav

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2020 10:21 PM
Not sure but if the output variable of the custom action is "dcom-setup_answer", there should be a data pill on the right side with that name. This variable should be used in the if statement instead of "output".
If I'm in the wrong, would appreciate showing me how the if condition is setup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2020 05:10 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2020 04:08 PM
It seems like a problem with the output variable type.
I've tried with outputting a String and didn't get any error. The thing that seems odd is the output variable name of the Script step being "Outputs". In my instance, names are converted to lowercase. Also, having a name "outputs" would require a statement "outputs.outputs" in the script step to set a value because "output" is a name of one of the parameter in method execute(inputs, outputs).