AndrewButenko / UltimateWorkflowToolkit

MIT License
78 stars 23 forks source link

Bulk Operations - failing without manually resuming #14

Open posegate opened 6 years ago

posegate commented 6 years ago

When running the bulk operations to run a workflow on a view, the process fails after a couple minutes without intervention. The intervention is that I must monitor the process, and when it changes to "Waiting", I must manually check it and resume it.

Even then, it will eventually fail. Here is the error message: `

Unexpected exception from plug-in (Execute): UltimateWorkflowToolkit.CoreOperations.Views.ViewDistributeWorkflow: System.TimeoutException: Couldn’t complete execution of the custom activity UltimateWorkflowToolkit.CoreOperations.Views.ViewDistributeWorkflow plug-in within the 2-minute time limit.

` Is there a way to avoid this?

AndrewButenko commented 6 years ago

Hello, How much records do you have in view?

posegate commented 6 years ago

Between 1100 - 13,000.

AndrewButenko commented 6 years ago

This can be a problem. Plugins and Custom Workflow Assemblies have 2 minutes execution timeout. Because you have a lot of records not all the records are processed and that's why you get this timeout error. What's your usecase?

posegate commented 6 years ago

I am having issues with a multiselect field properly interacting with the Web API. I attempted to create a yes/no field for each of the multiselect options. I used the work flow to attempt to update all of the records rather than needing to go 250 at a time through 26,000 total records.

AndrewButenko commented 6 years ago

That makes sense. Try to build a view where "Multiselect field" doesn't contain value and after several attempts job should be completed.