Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Workflow throwing unexpected error after importing into CRM 2016

Posted on by Microsoft Employee

We have a workflow which creates ID's for our reports. This works in our development environment but we moved it into out acceptance environment and now get an error.

Please see below for the error message.

Plugin Trace:

[OccurenceReportIDSequencer: OccurrenceReportIDSequencer.IDSequencer]
[Occurrence Report: ID Sequencer]

Error Message:

Unhandled Exception: Microsoft.Crm.CrmException: Unexpected exception from plug-in (Execute): OccurrenceReportIDSequencer.IDSequencer: System.Exception: Failed to update all new Occurrence Reports.
at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context)
at Microsoft.Crm.Workflow.Services.ProxyCustomActivity.Execute(CodeActivityContext executionContext)

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow throwing unexpected error after importing into CRM 2016

    I compared our acceptance environment to our development environment. The only differences were attributes. I unistalled and reinstalled the workflow plugins and the processes from our development environment. However the problem persists. Am unhandled exception from the plugin. On top of this using the Plugin Registration tool I am unable to debug the workflow plugin. Any ideas? Thanks in advance!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow throwing unexpected error after importing into CRM 2016

    I didn't deploy to the acceptance environment. Is there any way I can check if the workflow is missing any required components?

  • Suggested answer
    Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: Workflow throwing unexpected error after importing into CRM 2016

    Hello,

    You might missed something during the deployment that is required by your workflow to be able to generate the Sequence Number of your reports.

    Make sure that you deploy all the components on your acceptance environment. In addition, if you are using a configuration entity, make sure you import its data to the acceptance environment as well.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow throwing unexpected error after importing into CRM 2016

    Hi,

    Thanks for the timely response. Please see below for the two workflows code.

    I will give thoughts tools a try and get back to you. In the mean while any other suggestions?

    Thanks in Advance!

    Occurrence Report: Update Occurrence Report #

    • Check workflow

    OccurenceReportWorkFlowCheck (1.0.0.0);OccurrenceReportWorkFlowCheck.WorkflowCheck

    Step: if Check Workflow;WorkflowStatus equals [o], then:

     Start child workflow Occurrence Report ID Sequencer

    Occurrence report: ID Sequencer

    Timeout until 15 minutes then

     No steps have been added

    Timeout until 15 minutes then

     No steps have been added

    Timeout until 15 minutes then

     No steps have been added

    Timeout until 15 minutes then

    • Start child workflow: Occurrence Report: ID Sequencer

    • Stop workflow with status of: Succeeded

  • JFulfordMS Profile Picture
    JFulfordMS 185 on at
    RE: Workflow throwing unexpected error after importing into CRM 2016

    We would need to see the code in order to assist. Also, have you tried using System Customization Comparer and/or Delta Plugins (XrmToolBox plugins) to see if there are schema differences between environments?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans