Autosys command 'autorep -M' returns a database query failure.
Release : 12.0 and higher
This is due to a code mismatch between the expected function UJO_GET_MACHINE from the package vs the package stored in the database.
The package ujo_get_machine_pkg can be retrieved from the database using the following sql query:
select text from all_source where name='UJO_GET_MACHINE_PKG'
There would be differences in the package UJO_GET_MACHINE_PKG in comparison with the one shipped along with the product current version (file $AUTOSYS/dbobj/ORA/procedures.sql).
To fix the issue,