on 01-28-2015 8:16 AM
Background: I have created a Fork with 6 parallel branches with 6 necessary branches. When I have executed my workflow, it
got hanged at few intermediate steps of Fork.
Workflow graphical flow
Fork step definition
Workflow Chronological Status
Question: Why could be the reason ? How to diagnose this situation
Hi All,
I have waited long enough to find the way to diagnose the error but at last I am closing the thread without any answer.
SOLUTION I FOUND: -
Earlier - I have copy pasted plenty of steps in my workflow .
Now - Build a new workflow without copy pasting any of the steps. And workflow is running perfectly fine.
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siva,
1. Please make sure that agent determination is correct for User Decision step. Please check in technical log to whom user decision step is going for execution. Also, whoever the agent is, please make sure that you have concatenated 'US' with user id. For example, if SIVA is the agent, then you should assing USSIVA as the agent for user decision step.
2. If agent determination is correct for user decision, and still no workitem is going into the inbox then please make sure that you have made the user decision task as general task.
3. If both above points are correct, and still user decision is not coming up in workflow log, then please check if the checkbox 'Not in Workflow Log' is checked for user decision step.
Regards,
Richa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the Chronological View.
Display all Errors:
@ - Rob
Why do you use the term hanging?
Status is clearly READY of these workitems. Check if you can execute them through SWIA.
If you can then you made a misstake at agent determination.
-- I have termed as my workflow has hanged because I see no further step as 'In Progress'. Only My worklow has status as In progress, and there is no step in that status and no step is displayed in any of the logs. To execute anything from SWIA , I need to have a step in 'In Progress' . Here this is not the case.
Diagnose from My end - Followed SWUD , verified basic 'Verify Workflow' which is working fine. And I have no clue what to check next here. As entire workflow and its steps are in consistence with no errors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Status concept of dialog workitems
http://help.sap.com/saphelp_erp60_sp/helpdata/en/8d/25f336454311d189430000e829fbbd/content.htm
Using hanged usually means workitem has status in process indefinately. From your screenshots I haven't seen workitems, apart from the top flow, remaining in process.
1. identify workitems
2. find corresponding task
3. find corresponding method
4. use wf definition to understand binding between step<-->task<-->method (look for literals being passed)
5 use wf log to see the content of the container elements of the step that you are interested in
6. combine step 4 and 5 to recreate the situation in the workflow by isolating the method and ececuting that one either from se24 or swo1
7. see what happens
Kind regards, Rob Dielemans
Hi Siva,
I guess there might be some locking problem in the steps ( background ) you have mentioned. Please let us know what type of processing happening in there. As everything is running in parallel , it might be getting into error or hanging state , where it cannot lock on the object it want to process. That might ba shared custom table or something. We cannot confirm unless we know what actually hapening there.
Thanks
Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rakesh,
May be it was hanging temporarily. As I could see temporary errors for my workflow. After executing program to clear temporary errors. All the background jobs got cleared.
Now, Workflow is hanging at start of User decision task. Unable to understand what could be the error.
Regards,
Siva
Hi,
You should check the technical details of these steps in the workflow log to see if there are no things like deadline monitoring or temporary errors.
Check if its synchronous or asynchronous and maybe an event is not triggered.
Also check if these processes are still running SM50 is one tool to check that. I would also try to see what happens when you execute the methods using the same parameters. It might be that somewhere in the code there is an endless loop and that is why it can't continue.
Kind regards, Rob Dielemans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rob,
From the execution of the program 'RSWWERRE' , I have come to know that these steps have temporary errors and which got resolved by the execution of this report.
Assuming that standard jobs scheduled via activations from SWU3 didn't worked earlier to manual execution of the report by me. Even in this case as per my latest reply to Anajan, I am still clules.
Regards,
Siva
Hi,
Maybe the following has happened in your system.
Some time ago someone manually scheduled the backgroundjobs needed for using workflows, so this userid becomes the one executing these reports in background. Recently this user was deleted so the jobs can't be executed any more.
Check SM37 to see if there are errors and fix them by using the WF-BATCH or some other background user as the one executing them.
Kind regards, Rob Dielemans
Hi Siva,
Check the type of the Task. It should be background task.
Also check ST22 for any dumps.
Thanks,
Vijay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siva,
Is the status of background task is Ready or In process?
If it is 'Ready', then it could be a buffer issue. Try SWU_OBUF .
if it is an 'In Process' , the method could running in endless loop.
Just compare the input of working tasks and the hanging Tasks.
You might get some clues.
Thanks,
Vijay.
Hi Vijay,
Few of the background jobs got executed and few of them are in ready status. There is no buffer issue, as I have executed the transaction between two workflows and the two workflows have similar issue.
I have across a thread http://scn.sap.com/thread/3233082, where it talks about execution of program 'RSWWERRE'. After executing this program couple of background jobs got executed and still one background job got hanged in ready status.
Regards,
Siva
Hi,
Apart from Event queue and Clearing Report, all other configurations are up and running from long time. But until unless I have run program 'RSWWERRE' , few of background steps not got executed. Now all background jobs got executed and all are hanging at start of User decision step,
And chronological view doesn't show anything. And I do not understand what to do. Where is the problem .
Regards,
Siva
Hello,
You said: "Everything is configured in Workflow customized settings"
Obviously, this was not the case. SWU3 should have shown you that the SWWERRE was not running. Your workflow administrator (if there is one) is not doing his job.
Why do you think there is a problem now with the user decisions? What state are they in? If all is well, then they should be in READY state. You should show the chronological log, it's much easier to understand.
regards
Rick Bakker
Hi Rick,
As I said everything in SWU3 is fine, I assure that everything is fine. Those batch jobs are scheduled at interval 20 min, hence the delay of execution of background jobs.
Current Situation: All background jobs got executed. Workflow status is "In Progress". None of my user decisions steps are shown in chronological log. One can see my workflow graphical log stating that it has further steps as shown below. I am unable o figure out what could have happened. Kindly suggest a way to diagnose the issue.
From Graphical Log, it is clear that workflow has struck at User decision step. I am unable to understand why this step haven't executed. [ User decisions are not triggered to any of the user]
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.