Article ID: 87656
CA Automic Workload Automation - Automation Engine
Error Message :
U0020261 Error in Script 'JOBS.MYJOB': Error Number X in ':STOP MSG' not allowed In STOP MSG, you can only use error numbers 50-59. So if you are using the return code in the STOP MSG, you are likely to run into this error, where X is any number that is not between 50-59.
See: https://docs.automic.com/documentation/WEBHELP/English/all/components/AE/11.2/All%20Guides/help.htm#ucaaeb.htm?Highlight=stop msg
Release: AUTWAB99000-11.0-Automic Workload Automation-Base Edition
Root Cause: See description
This field was added on 30/03/2017. This article has not been updated yet. Refer to the "Description" or "Workaround" sections for solution information.
Fix Status: No Fix
Use an error number between 50-59ORInstead of::SET &RETCODE# = GET_UC_OBJECT_STATUS(JOBS,&ACTOBJ#, "RETCODE") :STOP MSG, &RETCODE#, "Error processing JOBS.MAILAGENT.STATEMENT_EMAIL_JCMOVEIT_146_CHECK"Capture the &RETCODE# and assign an error number for it.Example::SET &RETCODE# = GET_UC_OBJECT_STATUS(JOBS,&ACTOBJ#, "RETCODE") :IF &RETCODE# = "2":SET &ERRORNO# = 50:ELSE:SET &ERRORNO# = 51:ENDIF:STOP MSG, &ERRORNO#, "Error processing JOBS.MAILAGENT.STATEMENT_EMAIL_JCMOVEIT_146_CHECK"