cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Background task not completing

Former Member
0 Likes
1,353

Hi All,

I am triggering one standard task(TS) from event 'releasestepcreated' of Purchase Req. The task is a background task. The task is not completing automatically, it is always in 'in process' step. This was happening fine earlier and we refreshed our client and its not heppening now. All the configs in SWU3 is fine. Even I re-execute the task manually its giving me the error 'Work item xxxxxxxxxxxx cannot be executed in status E'.

Can anyone say, why the background task is 'in process' status where as it should complete automatically. You help is much more appreciated.

Thanks,

Padman

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member

Please check for any dumps in ST22

try restarting the workitem thru SWPR

Former Member
0 Likes

Hi,

Which standard task you are triggering with the event?

Is it part of your workflow or you are triggering a single step task with the help

of the event 'releasestepcreated'?

Regards

Kedar

Former Member
0 Likes

I am not using any standard task, I am using my custom task which gets triggerred through the event.

The code I have written here is mentioned below.

begin_method sendworkitemoutlook changing container.

WAIT UP TO 15 SECONDS.

SUBMIT zstp_wf_send_wi_email USING

SELECTION-SET 'WFTASKS' AND RETURN.

end_method.

Thanks,

Padman

Former Member
0 Likes

Remove the wait statement....

And make sure the input parameters to the SUBMIT program are getting passed corrctly...

Also check the Binding once

Former Member
0 Likes

All you need to do is check ST22 for relvent dumps and correct it. this is because of some error in the program.

Regards,

Simin Raveendran.

Former Member
0 Likes

the two reason may be

1. it gave a runtime error while executing in the background. has it given some dump on that day it went on executing the step

2. the other reason may be the submit program u r calling went into an infinite loop

Former Member
0 Likes

The Task should be a asynchronous step which will get terminated by a terminating event only. Please check whether terminating event gets triggered from SWEL when you user Execute the Task.

Thanks

Arghadip

Former Member
0 Likes

No, the task is a synchronous and background task. Any help on this is really appreciable.