I am working on a simple workflow which checks if a directory exists or not and create it.
When i execute it, if the directory is not present It takes the error path and creates the directory.
This works fine, though it adds a error message to the log when the directory is not there
Is there a way to supress this?
I'm not sure if this error message is coming from the decision activity itself.
The error is reported on line# 7 in item1. Which item in your workflow is the item1 (you can find this out by hovering with the mouse over the items; item names will appear in a tooltip)? Could you show the scripting code, or better export and attach your workflow?
Right, item1 is located in the workflow List path in guest, which is used by the workflow Check for directory in guest, which is used by your workflow.
The problem is that List path in guest (and other guest operations workflows) do not have their output exception binding set, so when some guest operation throws an error, you cannot just catch and not print the error message
The easiest way to fix it would be to modify these workflows and bind the output exception to some attribute. However, these workflows are sealed (as all out-of-the-box workflows) so you cannot edit them easily. One option would be to duplicate them and use the duplicated copies. Another option would be to write your custom workflows/scripting code to deal with the guest operations, using the existing workflows as a template (the code is not complex).