Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: An unexpected error occurred from ISV code. (ErrorType = ClientError) Unexpected exception from plug-in (Execute): MOT.CRM.CustomCS.Common.ExecuteRestAPI: System.Activities.InvalidWorkflowException: One or more errors occurred.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>46f8c131-37c9-4a9a-8a62-abc982574a48</ActivityId>
<ErrorCode>-2147220956</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>An unexpected error occurred from ISV code. (ErrorType = ClientError) Unexpected exception from plug-in (Execute): MOT.CRM.CustomCS.Common.ExecuteRestAPI: System.Activities.InvalidWorkflowException: One or more errors occurred.</Message>
<Timestamp>2025-06-02T12:15:33.7265684Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource>PluginExecution</ExceptionSource>
<InnerFault i:nil="true" />
<OriginalException>System.Activities.InvalidWorkflowException
at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout)
at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, String customActivityTypeName, IExecutionContext requestContext, Dictionary`2 sandboxServices, Boolean useDrawbridgeEnabled, Boolean chaosFailAppDomain)
at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, String customActivityTypeName, IExecutionContext requestContext, Dictionary`2 sandboxServices, Boolean useDrawbridgeEnabled, Boolean chaosFailAppDomain)
at Microsoft.Crm.Sandbox.SandboxWorker.<>c__DisplayClass10_0.<ExecuteCustomWorkflowActivity>b__0()</OriginalException>
<TraceText>
Entering Execution...
Request Url: https://crm.mot.gov.sa/MOTCRMPROD365/api/data/v9.1/accounts(E0D2A459-C083-EE11-8EAB-005056A07F46)?$select=accountid
Request Body:
Header X-API-KEY
Value 1020304050
Starting async GET request
Aggregate Exception: An error occurred while sending the request.
HTTP request error: An error occurred while sending the request.
Inner HTTP Request Exception: Unable to connect to the remote server
StackTrace:
Data: System.Collections.ListDictionaryInternal
HelpLink:
</TraceText>
</OrganizationServiceFault>

Report
All responses (
Answers (