web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 93
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:
I have the same question (0)
  • Verified answer
    Abanoub_D365 Profile Picture
    93 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
    93 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,520 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
DAnny3211 Profile Picture

DAnny3211 214

#2
Sahan Hasitha Profile Picture

Sahan Hasitha 148

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 129 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans