We see this error message when running job_depends :
CAUAJM_E_10257 Potential corruption of job data for joid <570,057>CAUAJM_E_10310 Failed to get job for joid <570,057>.
When trying to delete the job, we see:
______________________________________________________________________________
CAUAJM_I_50200 Attempting to Delete Job: <JOB_NAME>CAUAJM_E_10257 Potential corruption of job data for joid <570,057>CAUAJM_E_50178 Could not get row for joid = 570,057CAUAJM_E_50201 Delete was not performed!______________________________________________________________________________
CAUAJM_E_50198 Exit Code = 1______________________________________________________________________________
How do we determine which job is corrupted and how to fix it?
Autosys 12.x
CA Workload Automation AE (AutoSys)
Corrupt data in the database
You can run the following database query to find the job name:
Oracle:select job_name, joid from aedbadmin.ujo_job where joid like 570057;
MS SQL:select job_name, joid from ujo_job where joid like 570057;
Once you have identified the job, proceed with the steps below to eliminate the potential corruption :
autorep –d –J jobname$ autorep -q -J <jobname< > <jobname>.jil$ jiljil>>1> delete_job: <jobname>jil>>2> exit $ jil < jobname.jil > <jobname>.reupdate aedbadmin.ujo_job set is_active = 0 where joid = 570057;update aedbadmin.ujo_job set is_currver = 0 where joid = 570057;commit;update aedbadmin.ujo_job set is_active = 0 where joid = 570057;update aedbadmin.ujo_job set is_currver = 0 where joid = 570057;