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 CRM (Archived)

Sandbox error after splitting CRM backend and frontend roles.

(0) ShareShare
ReportReport
Posted on by

I recently split my crm backend and frontend roles and I have been having plugin errors. I have added the neccecary SPN's and permissions in the registry for the CRM service. My current error is as below, what should I do to resolve it. It occurs when I try to save records that have an autonumber plugin, but it saves fine on those records without.

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unexpected exception from plug-in (Execute): Celedon.getNextAutoNumber: System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.Detail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ErrorCode>-2147220956</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>Unexpected exception from plug-in (Execute): Celedon.getNextAutoNumber: System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.</Message>
  <Timestamp>2017-04-19T13:10:58.0449667Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText>

[CeledonPartners.AutoNumber: Celedon.getNextAutoNumber]
[e5180779-8cbb-e611-80bd-00155d150b00: CeledonPartners.AutoNumber.new_ithelpdesk]

Entered getNextAutoNumber.Execute() : (Correlation Id: dd65eeef-013e-44a6-a733-d87a2becaf49, Initiating User: 66da85bb-8da1-e611-9424-6eae8b2eeb93)
getNextAutoNumber is firing for Entity: new_ithelpdesk, Message: Create : (Correlation Id: dd65eeef-013e-44a6-a733-d87a2becaf49, Initiating User: 66da85bb-8da1-e611-9424-6eae8b2eeb93)
Exiting getNextAutoNumber.Execute() : (Correlation Id: dd65eeef-013e-44a6-a733-d87a2becaf49, Initiating User: 66da85bb-8da1-e611-9424-6eae8b2eeb93)


</TraceText>
</OrganizationServiceFault>


The above error is the latest when I try to save a record

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at
    RE: Sandbox error after splitting CRM backend and frontend roles.

    I solved the above issue by registering the offending plugins in Isolation mode=None using the MS SDK tools as explained in the link below:

    joshimandarblog.wordpress.com/.../crm-2015-plug-in-execution-failed-because-no-sandbox-worker-processes-are-currently-available

  • Community Member Profile Picture
    on at
    RE: Sandbox error after splitting CRM backend and frontend roles.

    Yes it is

  • Gopalan Bhuvanesh Profile Picture
    11,401 on at
    RE: Sandbox error after splitting CRM backend and frontend roles.

    Hope you have already checked that the Microsoft Dynamics CRM Sandbox Processing Service is running.

  • Community Member Profile Picture
    on at
    RE: Sandbox error after splitting CRM backend and frontend roles.

    Hey David,

    Thanks for the answer. Its however not specific to this particular plugin, but I get a similar error across all autonumber plugins (I have 2). They however work okay in a full server role CRM installation.

  • David Jennaway Profile Picture
    14,065 on at
    RE: Sandbox error after splitting CRM backend and frontend roles.

    I'm not certain from the error, but it looks like the error is being thrown within your plugin code, rather than CRM not being able to call the code. Specifically, it looks like you get an error using the IOrganizationService instance

    Can you post the plugin code ? It's probably also worth installing the plugin profiler to see if that gives any more information

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 CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans