Skip to Content
May 08, 2017 at 05:39 AM

Auto approval program triggering multiple instances of work flow


Hi Experts,

We have a custom auto approval programs to approve all the invoices which has exceeded the certain days of approval. This program is working fine when it was triggered for less number of invoices (around 200 invoices).

Problem which we are facing now is the workflow is not getting completed but getting stuck when the program is executed for around 2500 pending invoices. This auto approval program will just trigger the approval event for the wait step. Within 10 secs, event for all the invoices will get triggered. I believe after triggering, document posting will happen in parallel for all the invoices which is causing the workflow to get stuck. Is there any way to check whether the document posting is completed so as to proceed with the triggering of the next document?

Thanks in advance,