Skip to content

Bulk Operations.DistributeWorkflow failing with BulkUpdate #41

@Marina-K89

Description

@Marina-K89

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions