This project has moved and is read-only. For the latest updates, please go here.
1

Closed

use tools sandbox service error

description

My crm version is 2016 update 1.its on premise. the error log file is :

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): msdyncrmWorkflowTools.ShareRecordWithUser: System.ServiceModel.CommunicationObjectFaultedException: Communication object System.ServiceModel.Channels.ServiceChannel Cannot be used for communication because it is in error state。Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<KeyValuePairOfstringanyType>
  <d2p1:key>OperationStatus</d2p1:key>
  <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">0</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
  <d2p1:key>SubErrorCode</d2p1:key>
  <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>Unexpected exception from plug-in (Execute): msdyncrmWorkflowTools.ShareRecordWithUser: System.ServiceModel.CommunicationObjectFaultedException:Communication object System.ServiceModel.Channels.ServiceChannel Cannot be used for communication because it is in error state。</Message>
<Timestamp>2016-12-27T14:06:35.5165739Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>

[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
[5cc18072-29cb-e611-80c9-005056bd0884: ]
Starting sync workflow 'testflow', Id: 56c18072-29cb-e611-80c9-005056bd0884
Entering CustomActivityStep1_step:
Sync workflow 'testflow' terminated with error 'Unexpected exception from plug-in (Execute): msdyncrmWorkflowTools.ShareRecordWithUser: System.ServiceModel.CommunicationObjectFaultedException:Communication object System.ServiceModel.Channels.ServiceChannel Cannot be used for communication because it is in error state。'

</TraceText>
</OrganizationServiceFault>




the problem is sandbox service.because when i register workflow on "none" not on "sandbox" it will run Success, but when i run on "sandbox", it will error. I also restart the sandbox service. but it did not work.

my sandbox is runing domain user which a new user. someone know the reason?
Closed Feb 11 at 11:55 PM by demian_rasko

comments

demian_rasko wrote Feb 11 at 12:30 PM

Hi jjsuo,
All my tests are made on CRM Online enviromnents on lasts versions.
On CRM Online, all the actions are executed on the Online Sandbox, so it might work.
I think that you maybe have some issue with that new user that executes the sandbox service.

demian_rasko wrote Feb 11 at 12:30 PM

Please try to change it and tell me if that works...

wrote Feb 11 at 11:55 PM