After a new installation of AutoSys Workload Automation (e.g., version 24.x) on a Linux environment with an Oracle database, the Scheduler fails to start.
The following errors are observed in the event_demon log:
CAUAJM_E_18416 Event Server: <SERVER_NAME> Failed Query: <BEGIN :RetVal := ujo_get_eoid_pkg.ujo_get_eoid (:B_eoid); END;>
CAUAJM_E_18402 ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "AEDBADMIN.UJO_GET_EOID_PKG", line 14
CAUAJM_E_10166 Failed to retrieve eoid from database.
CAUAJM_E_10067 Failed to get an event identifier. Scheduler cannot recover and must shutdown.
The Application Server and Webserver typically start without issue, but the Scheduler consistently fails to initialize.
Autosys 24.x on Linux with Oracle database
The error ORA-01422: exact fetch returns more than requested number of rows indicates that a query within the ujo_get_eoid_pkg.ujo_get_eoid stored procedure is returning multiple rows when only one is expected. This is caused by duplicate entries in the ujo_last_eoid_counter (or ujo_next_oid) table for the EOID identifier.
To resolve this issue, the duplicate row must be identified and removed from the database:
AEDBADMIN).ujo_last_eoid_counter table:ROWID:ujo_next_oid table: