web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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.

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    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.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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?

  • Mohammed Fakhri Profile Picture
    402 on at

    Hi Ravi,

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

    -Thanks

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    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?

  • Suggested answer
    Mohammed Fakhri Profile Picture
    402 on at

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

    1) It is still working fine with isolation mode sandbox in other 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans