Skip to main content

Notifications

Announcements

No record found.

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

  • 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,063 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

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... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans