Page 1 of 1
Controller Problem
Posted: Mon Dec 01, 2008 11:30 pm
by pradkumar
Hi All
I am running a job sequence in two different environments (Integration and Production).
In integration its runing fine, but in production its failing with error code=-1
"Controller problem: Error calling DSWaitForJob(), code=-1
[Invalid JobHandle]"
What this error code=-1 represents?
Could any one of you let me know how to solve this issue?
Thanks
Posted: Mon Dec 01, 2008 11:45 pm
by balajisr
Did you migrate this job into production in the first place?
Also, please delete the other duplicate post before anyone answers that.
Posted: Tue Dec 02, 2008 12:05 am
by pradkumar
Sure will do this.
i migrated the jobs for the first time to production
Posted: Tue Dec 02, 2008 12:31 am
by balajisr
Verify whether the job is in right state to run. Is the job status "Not Compiled"?
Posted: Tue Dec 02, 2008 12:47 am
by pradkumar
Jobs are in the right state. They are compiled
Posted: Tue Dec 02, 2008 8:34 am
by chulett
As noted in the message, that "-1" means "Invalid JobHandle". Odd that it happens in the WaitForJob part of the process, that should mean it was able to start the job using the handle it established.
Did you try search for "Invalid JobHandle"? People have reported the problem here in the past and solutions were posted, see if any of them resolve your problem.
Posted: Tue Dec 02, 2008 11:19 am
by ray.wurlod
Are you using your own ("hand written") job control code?
Look for code like the following:
Code: Select all
hJob1 = DSAttachJob(JobName, DSJ.ERRNONE)
ErrCode = DSRunJob(hJob1, DSJ.RUNNORMAL)
ErrCode = DSWaitForJob(hJob)
(These may not be adjacent lines in your node.) Note that the variable used in DSWaitForJob() is not the same name as that used in DSAttachJob() and DSRunJob().