How to detect output of a python script in Model Builder

Discussion created by alextaochen on Feb 21, 2012
Hi all,

I have a python script added in Model Builder that is a part of the geoprocessing workflow. It just simply takes some string as arguments and updates SQL Server database tables. Nothing is generated out of the tool.

However, I need to detect if the script runs succesfully in the workflow so that it will continue to the next step. Is there any solution to it? For example, it generates output strings like "SUCCESSFUL" or "FAILED".

Any thought will be greatly appreciated!