Error Message :
U00020308 Runtime error in object 'JOBS.WIN.INC00124939', line '00004'. Invalid internal parameter type '010121'.
In Automation Engine (AE) version 11 and 12, script function :REGISTER_VARIABLE returns an unexplicit error message "Invalid internal parameter type '<number>'" in the "Messages" window when the second parameter is missing.
Example: 17/02/2017 12:24:06 - U00020308 Runtime error in object 'JOBS.WIN.INC00124939', line '00004'. Invalid internal parameter type '010116'.
This behavior only impacts AE versions 11 and 12. Investigation
The error can be seen in jobs where a parameter of :REGISTER_OUTPUTFILE is missing. Here is an example:dir C:\temp /S >> C:\temp\[email protected] retcode=%errorlevel% [email protected] NOT %ERRORLEVEL% == 0 goto :retcode:REGISTER_OUTPUTFILE "C:\temp\test.txt"
There is an error because :REGISTER_OUPUTFILE should always be used with the following syntax::REGISTER_OUTPUTFILE File, User Login
The correct usage of this script function should be::REGISTER_OUTPUTFILE "C:\temp\test.txt", "Y"