Hi
Thank you for replying.
Below is a snippet of teh code in the JOBF Post Processing tab. The wait time is 60 seconds, which is passed down from teh calling JOBP.
We did an experiment with a JOBP calling a JOBS that returns an error, with its Post Processing containing the same code as below, and that worked, as in it retried as expected.
:SET &Z_RETRY_RUNNR# = SYS_ACT_RESTART_ME_NR()
:SET &Z_RETRY_ORUNNR# = SYS_ACT_ME_NR()
:SET &Z_RETRY_PTYPE# = SYS_ACT_PARENT_TYPE()
:SET &Z_RETRY_PRNR# = SYS_ACT_PARENT_NR()
:SET &Z_RETRY_PNAME# = GET_PARENT_NAME(, &Z_RETRY_ORUNNR#, "ACT")
:SET &Z_RETRY_NAME# = SYS_ACT_ME_NAME()
:SET &Z_RETRY_STATUS# = GET_UC_OBJECT_STATUS(,&Z_RETRY_RUNNR#)
:SET &Z_RETRY_RET# = GET_UC_OBJECT_STATUS(,&Z_RETRY_RUNNR#,RETCODE)
:WAIT &Z_RETRY_WAITTIME#
:PRINT &&Z_RETRY_RUNNR# = [&Z_RETRY_RUNNR#]
:PRINT &&Z_RETRY_ORUNNR# = [&Z_RETRY_ORUNNR#]
:PRINT &&Z_RETRY_PTYPE# = [&Z_RETRY_PTYPE#]
:PRINT &&Z_RETRY_PRNR# = [&Z_RETRY_PRNR#]
:PRINT &&Z_RETRY_NAME# = [&Z_RETRY_NAME#]
:PRINT &&Z_RETRY_STATUS# = [&Z_RETRY_STATUS#]
:PRINT &&Z_RETRY_RET# = [&Z_RETRY_RET#]
:PRINT &&Z_RETRY_WAITTIME = [&Z_RETRY_WAITTIME#]
:IF &Z_RETRY_STATUS# = "1800"
: IF &Z_RETRY_RETRIES# < &Z_RETRY_MAXRETRIES#
: SET &Z_RETRY_RETRIES# = &Z_RETRY_RETRIES# + 1
: SET &Z_RETRY_RESTART# = RESTART_UC_OBJECT (&Z_RETRY_NAME#,&Z_RETRY_ORUNNR#)
: PRINT &&Z_RETRY_RESTART# = [&Z_RETRY_RESTART#]
: ENDIF
:ENDIF
Original Message:
Sent: 03-08-2019 09:38 AM
From: M
Subject: Re: File Transfer Object with Retry
Can you share whats the runtime of these jobs ?
Most likely if you see this error i assume that the job is still not read as complete by UC4.
I assume the successive restarts are in quick time frame.
I would just try to add some wait time before the auto- restart of the object to see if that solves the problem.