Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Not able to register any custom code activity/Plugin in isolation mode sandbox

(1) ShareShare
ReportReport
Posted on by 2
Facing and getting this error msg during the registeration of the custom code activity in isloation mode sandbox while trying to registering it in "None" is working fine what I need to find the trace logs even though the tracing is enabled for all and after a huge search find-out on the on prem v9.1 what is logged on the trace logs is plugins and custom code activity which are registered on "Sandbox"

For the exception Details
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Exception retrieving custom activity info using SandboxPlugin - Unhandled exception: 
Exception type: Microsoft.Crm.CrmException
Message: Unable to retrieve customActivityInfo using RetrieveCustomActivityInfoWithSandboxPlugin.
   at Microsoft.Crm.Workflow.ObjectModel.CustomActivityInfoMetadataBase.GetCustomActivityInfo(ActivityInfo activityInfo, Int32 isolationMode, Guid pluginAssemblyId)
-- End stack trace --

Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <ActivityId>d804b910-cfcf-4a62-8cde-a1a32210a402</ActivityId>
  <ErrorCode>-2147200934</ErrorCode>
  <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <a:key>ApiExceptionSourceKey</a:key>
      <a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Plugin/Microsoft.Crm.ObjectModel.PluginTypeService</a:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <a:key>ApiOriginalExceptionKey</a:key>
      <a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Microsoft.Crm.CrmException: Exception retrieving custom activity info using SandboxPlugin - Unhandled exception: 
Exception type: Microsoft.Crm.CrmException
Message: Unable to retrieve customActivityInfo using RetrieveCustomActivityInfoWithSandboxPlugin.
   at Microsoft.Crm.Workflow.ObjectModel.CustomActivityInfoMetadataBase.GetCustomActivityInfo(ActivityInfo activityInfo, Int32 isolationMode, Guid pluginAssemblyId)
-- End stack trace --
 ---&gt; Microsoft.Crm.CrmException: Exception retrieving custom activity info using SandboxPlugin - Unhandled exception: 
Exception type: Microsoft.Crm.CrmException
Message: Unable to retrieve customActivityInfo using RetrieveCustomActivityInfoWithSandboxPlugin.
   at Microsoft.Crm.Workflow.ObjectModel.CustomActivityInfoMetadataBase.GetCustomActivityInfo(ActivityInfo activityInfo, Int32 isolationMode, Guid pluginAssemblyId)
-- End stack trace --
 
Categories:
  • Suggested answer
    Holly Huffman Profile Picture
    Holly Huffman 767 on at
    Not able to register any custom code activity/Plugin in isolation mode sandbox

    It sounds like you're encountering an issue with registering custom code activities or plugins in isolation mode (sandbox) in Dynamics 365. Here are some steps you can take to troubleshoot and resolve this issue:

    1. Ensure that the plugin assembly is correctly signed and that all dependencies are included. Verify that the assembly is compatible with the sandbox environment.

    2. Review Plugin Code: Check the plugin code for any operations that are not allowed in the sandbox environment, such as accessing the file system or making external network calls.

    3. Enable Tracing: Enable tracing for the plugin to capture detailed logs. You can do this by setting the TracingService in your plugin code. Review the trace logs to identify any specific errors or issues.

    4. Check Security Roles: Ensure that the user registering the plugin has the necessary security roles and permissions to register plugins in the sandbox environment.

    5. Review Isolation Mode Settings: Verify that the isolation mode is set to "Sandbox" in the Plugin Registration Tool. Ensure that the plugin is registered correctly with the appropriate isolation mode.

    6. Consult Documentation and Community: Refer to the for guidelines on registering plugins in the sandbox environment.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,286 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans