Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

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

(4) ShareShare
ReportReport
Posted on by 89
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:
  • Verified answer
    Abanoub_D365 Profile Picture
    89 on at
    Not able to register any custom code activity/Plugin in isolation mode sandbox
    Now, after setting the appropriate logged-in service account user for the sandbox service able to register the sandbox plugin 
  • Abanoub_D365 Profile Picture
    89 on at
    Not able to register any custom code activity/Plugin in isolation mode sandbox
    Hi Holly,
     appreciated your reply BTW the assembly definitely is signed and I've reviewed the code It's very simple I'm just trying to add or register any sandbox custom code activity after many trials registering the plugin worked meanwhile tracing is enabled on it however I am facing another issue related to not able to see any trace logs and I'm registering by the service admin account 
  • Suggested answer
    Holly Huffman Profile Picture
    6,285 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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Adis Profile Picture

Adis 136 Super User 2025 Season 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 81

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 77 Super User 2025 Season 1

Product updates

Dynamics 365 release plans