adaptisoft
Field notes

No. 06TroubleshootingPlugins

Exception retrieving custom activity info using SandboxPlugin

Diagnosing a sandbox plugin assembly import error in Dynamics 365.

Ahmed Sawalhy

Principal Engineer

Mar 2025 / 2 min read

Issue#

Upon importing a solution containing a Sandbox plugin assembly, or registering an assembly in Sandbox mode, the following error is thrown:

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 —

Investigation#

Registering in ‘none’ mode works fine.

Sandbox assembly registration takes too long and fails with the above message. In addition, a buried Windows event log entry indicated that the Sandbox service cannot communicate with other server nodes.

Checking communication between the frontend and backend (hosting the Sandbox service) servers indicated a network block. One of the following quick tests could be used to check for a block:

  1. Telnet
    1. Telnet must be enabled/allowed on the server
    2. Open a command line from inside the frontend server
    3. Enter the following: telnet <backend-ip-address> 808
    4. Notice the space between the IP address and the port
  2. TCP Ping: here
    1. Try to ping the backend IP address and port 808 from the frontend server

Solution#

Remove or resolve whatever is causing the blocked connection.

Possible causes:

  1. Windows firewall on either servers
  2. Security software firewall on either server
  3. Network switch rule between the servers
  4. The Sandbox service itself stops for some reason
Share

Written by

Ahmed Sawalhy

Principal Engineer, Adaptisoft

One of the engineers who supervise Adaptisoft's agents — hands-on with Dynamics 365 since its first release.

Next field note · No. 05

Importing elastic table key error

A fix for elastic-table solution import failures.

Keep reading

See it working in your own tenant.

A short, read-only pilot. No data leaves your walls.

Book a pilot