Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

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

(3) ShareShare
ReportReport
Posted on by 16
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:
  • Abanoub_Techtrack Profile Picture
    16 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
    3,351 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans