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

workflow error:Agent assignment

former_member249671
Participant
0 Likes
1,305

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

View Entire Topic
paul_bakker2
Active Contributor
0 Likes

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

former_member249671
Participant
0 Likes

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.

anjan_paul
Active Contributor
0 Likes

HI,

   Can you please share in details how agents are  determined with screenshot. Also share the bindings

nishantbansal91
Active Contributor
0 Likes

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

former_member249671
Participant
0 Likes

Hi,

Binding and rule simulation shows fine. As i mentioned earlier,this issues occurs only when i upload multiple files and error happens only every other workflow. I do not see any issue with workflow. because it is working fine when I restart it again from SWPR

anjan_paul
Active Contributor
0 Likes

hI,

     It will be  good if you share your your workflow is doing with design. May be locking issues happen for  the keys from your file