Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error in Custom Workflow Activity. Workflow fires on create of a custom entity and is running under service account ownership. CRM 2013 SP1 OnPremise. This Workflow was implemented to change the default Business Process Flow on a Form.

Posted on by 402

Error Message :

System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5AE97F1D

Plugin Trace:

[CRM.CustomWorkflowActivity: CRM.CustomWorkflowActivity.GetProcessID]
[CRM.CustomWorkflowActivity (1.0.0.0): CRM.CustomWorkflowActivity.GetProcessID]

Error Message:

Unhandled Exception: Microsoft.Crm.CrmException: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5AE97F1D
   at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context)
   at Microsoft.Crm.Workflow.Services.ProxyCustomActivity.Execute(CodeActivityContext executionContext)

*This post is locked for comments

  • Suggested answer
    Mohammed Fakhri Profile Picture
    Mohammed Fakhri 402 on at
    RE: Error in Custom Workflow Activity. Workflow fires on create of a custom entity and is running under service account ownership. CRM 2013 SP1 OnPremise. This Workflow was implemented to change the default Business Process Flow on a Form.

    It worked with isolation mode none. but the question is.

    1) It is still working fine with isolation mode sandbox in other environments.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Error in Custom Workflow Activity. Workflow fires on create of a custom entity and is running under service account ownership. CRM 2013 SP1 OnPremise. This Workflow was implemented to change the default Business Process Flow on a Form.

    If it is failing every time then there must be something within the code.

    Can you share the code and some more details? Are trying to use any local resource like file etc? Can you change it to isolation 'None' and see if it works?

  • Mohammed Fakhri Profile Picture
    Mohammed Fakhri 402 on at
    RE: Error in Custom Workflow Activity. Workflow fires on create of a custom entity and is running under service account ownership. CRM 2013 SP1 OnPremise. This Workflow was implemented to change the default Business Process Flow on a Form.

    Hi Ravi,

    It is failing every time. the Workflow Activity DLL is registered in the Sandbox.

    -Thanks

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Error in Custom Workflow Activity. Workflow fires on create of a custom entity and is running under service account ownership. CRM 2013 SP1 OnPremise. This Workflow was implemented to change the default Business Process Flow on a Form.

    Hi Mohammed,

    I have seen this error and usually happens sporadically sometime. If you retry, it should work.

    Could you please check and confirm if it fails every time or intermittently?

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Error in Custom Workflow Activity. Workflow fires on create of a custom entity and is running under service account ownership. CRM 2013 SP1 OnPremise. This Workflow was implemented to change the default Business Process Flow on a Form.

    Hi Mohammed,

    Can you share some additional information? The error is very generic except for it being a Security Exception. It would be good if we can pinpoint the location of the issue.

    Also there are various workflow tools (with source code) out there that are already doing the same, which you can re-compile and get it to do the same for CRM 2013.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans