You are on page 1of 3

Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault,
Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35]]: System.Exception: Javad
{ "PurchaseId": "", "NewPurchaseState": 6 }
System.AggregateException: One or more errors occurred. --->
System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.Net.WebException: Unable to connect to the remote server --->
System.Net.Sockets.SocketException: A connection attempt failed because the
connected party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond 10.1.17.23:81
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket
s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state,
IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult,
TransportContext& context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean
waitCompletionNotification)
at
MofidXRM_Workflow_WebAPICall.Workflow_WebAPICall.CallWebAPI.SendDataToWebAPI(String
httpMethod, String endpointURL, String contentType, String content)
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred
while sending the request. ---> System.Net.WebException: Unable to connect to the
remote server ---> System.Net.Sockets.SocketException: A connection attempt failed
because the connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to respond
10.1.17.23:81
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket
s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state,
IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult,
TransportContext& context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
--- End of inner exception stack trace ---<---

at
MofidXRM_Workflow_WebAPICall.Workflow_WebAPICall.CallWebAPI.SendDataToWebAPI(String
httpMethod, String endpointURL, String contentType, String content)
at
MofidXRM_Workflow_WebAPICall.Workflow_WebAPICall.CallWebAPI.ExecuteCRMWorkFlowActiv
ity(CodeActivityContext executionContext, LocalWorkflowContext
crmWorkflowContext)Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>12559aff-186c-43f6-ad51-abc6a86ec110</ActivityId>
<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>System.Exception: Javad
{ "PurchaseId": "", "NewPurchaseState": 6 }
System.AggregateException: One or more errors occurred. ---&gt;
System.Net.Http.HttpRequestException: An error occurred while sending the request.
---&gt; System.Net.WebException: Unable to connect to the remote server ---&gt;
System.Net.Sockets.SocketException: A connection attempt failed because the
connected party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond 10.1.17.23:81
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket
s4, Socket s6, Socket&amp; socket, IPAddress&amp; address, ConnectSocketState
state, IAsyncResult asyncResult, Exception&amp; exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult,
TransportContext&amp; context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean
waitCompletionNotification)
at
MofidXRM_Workflow_WebAPICall.Workflow_WebAPICall.CallWebAPI.SendDataToWebAPI(String
httpMethod, String endpointURL, String contentType, String content)
---&gt; (Inner Exception #0) System.Net.Http.HttpRequestException: An error
occurred while sending the request. ---&gt; System.Net.WebException: Unable to
connect to the remote server ---&gt; System.Net.Sockets.SocketException: A
connection attempt failed because the connected party did not properly respond
after a period of time, or established connection failed because connected host has
failed to respond 10.1.17.23:81
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket
s4, Socket s6, Socket&amp; socket, IPAddress&amp; address, ConnectSocketState
state, IAsyncResult asyncResult, Exception&amp; exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult,
TransportContext&amp; context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
--- End of inner exception stack trace ---&lt;---

at
MofidXRM_Workflow_WebAPICall.Workflow_WebAPICall.CallWebAPI.SendDataToWebAPI(String
httpMethod, String endpointURL, String contentType, String content)
at
MofidXRM_Workflow_WebAPICall.Workflow_WebAPICall.CallWebAPI.ExecuteCRMWorkFlowActiv
ity(CodeActivityContext executionContext, LocalWorkflowContext
crmWorkflowContext)</Message>
<Timestamp>2022-09-18T05:53:06.9082425Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
[52c07726-25e2-ea11-8373-005056aa1985: ]
Sync workflow 'Change Status - Realtime - Call Pellekan API' terminated with error
'System.Exception: Javad
{ "PurchaseId": "", "NewPurchaseState": 6 }
System.AggregateException: One or more errors occurred. ---&gt;
System.Net.Http.HttpRequestException: An error occurred while sending the request.
---&gt; System.Net.WebException: Unable to connect to the remote server ---&gt;
System.Net.Sockets.SocketException: A connection attempt failed because the
connected party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond 10.1.17.23:81
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket
s4, Socket s6, Socket&amp; socket, IPAddress&amp; address, ConnectSocketState
state, IAsyncResult asyncResult, Exception&amp; exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult,
TransportContext&amp; context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean
waitCompletionNotification)
at
MofidXRM_Workflow_WebAPICall.Workflow_WebAPICall.CallWebAPI.SendDataToWebAPI(String
httpMethod, String endpointURL, String contentType, String content)
---&gt; (Inner Exception #0) System.Net.Http.HttpRequestException: An error
occurred while sending the request. ---&gt; System.Net.WebException: Unable to
connect to the remote server ---&gt; System.Net.Sockets.SocketException: A
connection attempt failed because the connected party did not properly respond
after a period of time, or established connection failed because connected host has
failed to respond 10.1.17.23:81
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket
s4, Socket s6, Socket&amp; socket, IPAddress&amp; address, ConnectSocketState
state, IAsyncResult asyncResult, Exception&amp; exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult,
TransportContext&amp; context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
--- End of inner exception stack trace ---&lt;---

at
MofidXRM_Workflow_WebAPICall.Workflow_WebAPICall.CallWebAPI.SendDataToWebAPI(String
httpMethod, String endpointURL, String contentType, String content)
at
MofidXRM_Workflow_WebAPICall.Workflow_WebAPICall.CallWebAPI.ExecuteCRMWorkFlowActiv
ity(CodeActivityContext executionContext, LocalWorkflowContext crmWorkflowContext)'

</TraceText>
</OrganizationServiceFault>

You might also like