I have created a workflow in SharePoint 2013 using 2010 workflow template. This workflow is running when any new item is uploaded in the document library.
In the library upload properties form, there are 7 users fields, which are used in workflow to assign task to them.
I have used Start task process to create tasks and assign to the users sequentially upto 7 level. But at level 2, I am generating 2 parallel tasks and then waiting them to complete and then passing no to 3 level and so on.
I have also created 2 new fields in Task list through Tasks(in workflow) only and then setting values it in at stage 'Before a Task is Assign' using Set Task field.
Issue1: When end users are uploading the document, sometimes workflow is not working properly and throwing error stating 'an error has occurred' and 1st level task is not getting generated.
Issue2: And sometimes when users are trying to approve/reject tasks then they are not able to do so as they are receiving 'Task is locked by the running workflow and cannot be edited' error.
When I am restarting the workflow after terminating the it is running fine. But the above errors are occurring intermittently. Could you please help in this, as this workflow is running on 26 sites and many users are using it daily.
But this is not feasible as there are 26 sites on which workflow is running.
ULS logs error:
Winwf internal error terminating workflow SharePoint 2010
can't find workflow service proxy or its service application proxy type name is null
Publishing workflows using System account but not using Impersonation step. As Tasks are created with user who is uploading the document.
SharePoint Timer Service is running with Farm account
SharePoint Tracing Service is running with local service account