Users may encounter the following error when attempting to run autorep -j [job_name] -q or delete a job in AutoSys Workload Automation:
CAUAJM_E_18402 ORA-00904: "B"."SEQ_NUM": invalid identifier
Additionally, attempting to change the job status to inactive (is_active=0) via SQL as per existing KB autorep -j jobname -q gives "CAUAJM_E_18402 ORA-00904: "B"."SEQ_NUM": invalid identifier" message does not allow the job to be redefined or deleted through standard JIL commands.
Autosys 12.x , 24.x
Oracle
This issue occurs due to an inconsistency in the ujo_job table metadata. Specifically, a database state can occur where the job is marked as inactive (is_active = 0), but the current version flag (is_currver) remains set to 1. This mismatch prevents the application server from correctly identifying the job version to be processed or deleted.
Common triggers include:
To resolve this inconsistency and allow the job to be redefined, the is_currver flag must be manually updated in the database.
Run the following query to verify the state of the affected job:
Review this command before running it.
Confirm if is_currver is set to 1 while is_active is 0 (or if multiple rows exist with is_currver=1).
Update the current version flag so the job is no longer recognized as the active definition.
This command will make changes to your system. Review it carefully before running.
autorep -j YOUR_JOB_NAME. It should no longer return a definition.