on ‎2015 Oct 06 6:47 AM
Hi All,
I am running a program which uploads files from presentation server.For each uploaded file ,each workflow will be triggered using FM SAP_WAPI_START_WORKFLOW. Inside the step of a workflow,we have used Rule with responsibilities to identify an agent.From past few days whenever the program runs for multiple files ,every simultaneous workflow goes to error and in log it shows as rule unable to fetch agents.
suppose if i upload 5 files: for 1,3,5 workflow will be Inprocess and 2,4 is in error. if i run the program for each file separately,it is running successfully.I could successfully restart the error ed ones from SWPR. when I simulate the rule ,agents are showing up successfully.
This issue only occurs in Pre-production currently and doesn't show up in quality server also.
can any one advise,why error occurs for every other document even though agents are maintained correctly?
please refer attachment for error
Request clarification before answering.
Hi,
What are the inputs to the agent rule? Are they always available or are they time-dependent?
How many workflows are you starting at one time?
In general, it's best practice to start workflow via events rather than through a function module call. Events are better at handling high volume scenarios (eg you can space them out the event queue)
cheers
Paul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paul,
Thanks for the reply,
Input to the Rule is company code and I could see the company code in workflow container which is binded to rule container. Problem here is why the issue surfaces for every other document when the input is same. I have checked in debugging and i could see all values correctly. Only issue persists when we upload multiple files.
Its already developed workflow by some other and so,I can't change it to event now.
Thank you.
Hi Sunil,
Please diagnosis the problem step by step.
1. Please simulate the rule in pfac, if the rule simulation is for multiple value means your rule is correct.
2, Simulate the task. if the task is working fine it means that your task is working perfectly and binding between task and rule is also correct,
Then check the workflow binding.
Thanks
Nishant
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.