Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
There's an custom workflow fail with this exception The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
when i update dll from plugin registration tool and make Isolation Mode from sandbox to None the problem solved but i want to register custom WF in Sandbox Isolation Mode .. So please any advice regarding this error ?
Can you please provide the source code of that workflow activity?
public static Incident GetCase(XrmServiceContext context, Guid IncidentID)
var incidentQuery = from incident in context.IncidentSet
incident.Id == IncidentID
if (incidentQuery.ToList().FirstOrDefault() != null && incidentQuery.ToList().Count > 0)
catch (FaultException<OrganizationServiceFault> ex)
throw new InvalidPluginExecutionException("Detail Message:" + ex.Detail.Message + "\nError Details:" + ex.Detail.ErrorDetails + "\nMethod Name:" + "GetCase");
and error is :
Sync workflow failed with error message - Unhandled Exception: Microsoft.Crm.Workflow.Services.InvalidCustomActivityExecutionException: Detail Message:Detail Message:System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
Server stack trace:
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
Exception rethrown at :
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte serializedRequest, Object sandboxTraceSettingsObj): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CFA0EB5D
I think the error is somewhere else in your code. The error indicates that there has already been a communication error. This will be a property related to the XrmServiceContext, so I expect the problem is either how you instantiate this in the calling code, or with some other use of this object
Use service.retrieve request to fetch incident details instead of using organizationservicecontext.
Business Applications communities