I have a workflow which inputs, transforms, edits and writes the results to an output file that is in a tool container. As a part of the workflow, I am performing edits to ensure that certain characteristics are present, i.e. column headers are correct, no null values, valid values, etc. The error listing from the edit checks is captured in a separate output file. If the output from the edit checks contains a record count > 0, I would like to prevent the output within the tool container from writing the records to the output location. I added a test tool to each output from the edit checks and added the Runtime edit to 'Cancel Running Workflow on Error', but the output in the tool container still wrote the records to the output location. Can a condition be placed on the error listing output that disables the tool container if the number of error records exceeds 0? If so, how is that accomplished?
