You can use the msgCode element to determine the kind of error that occurred. TIBCO ActiveMatrix BusinessWorks Error Codes lists all error codes that activities can return. You should use the error code instead of the error message text to detect and handle errors. The error code should remain constant from release to release, but the text of the message may change.