-
Notifications
You must be signed in to change notification settings - Fork 23
Description
I wrote plugin that update specified field in 1000 records of entity with BulkUpdate.
Business process fires when specified field changes value. That business process is background and calls Bulk Operations:Distribute Workflow with Input properties Distributed Workflow, Record, Relationship Name.
The Distributed Workflow that must be called is background and on-demand process.
For the first record of BulkUpdate it works perfect. But started from second record Distributed Workflow fails
In details there is error
"An ActivityContext can only be accessed within the scope of the function it was passed into.
Object name: 'System.Activities.CodeActivityContext'."
or
ValidateOpen - Encountered disposed CrmDbConnection when it should not be disposed