Hi,
I am running a function using the ‘Schedule Epicor Function’ screen. It is a function that was created by the Epicor Custom Solutions Group.
It is failing in System Monitor with a strange error, which I’ve copied below. This seems to say the process lost connection to the server, but Support cannot explain why. For reference, we are a public cloud customer.
Anyone seen this before?
Executing library ‘CsgPegBuild’ function ‘buildPeggingFile’
“kinetic”: An error occurred trying to run task ID 950616 for agent “SystemTaskAgent” on the application server (User: “ZanebK”, Task Description: “eFX: CsgPegBuild.buildPeggingFile - The main funct”).
Error details:
System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. —> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. —> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
— End of inner exception stack trace —
at System.Net.Security._SslStream.EndRead(IAsyncResult asyncResult)
at System.Net.TlsStream.EndRead(IAsyncResult asyncResult)
at System.Net.Connection.ReadCallback(IAsyncResult asyncResult)
— End of inner exception stack trace —
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
— End of inner exception stack trace —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<g__Core|5_0>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<g__Core|5_0>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Epicor.ServiceModel.Channels.ImplBase.d__127.MoveNext() in C:_releases\ICE\ICE4.3.100.0\Source\Shared\Framework\Epicor.ServiceModel\Channels\ImplBase.cs:line 1093
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Epicor.Utilities.AsyncHelper.RunSync[TResult](Func1 method) in C:\_releases\ICE\ICE4.3.100.0\Source\Shared\Framework\Epicor.ServiceModel\Utilities\AsyncHelper.cs:line 16 at Epicor.ServiceModel.Channels.ImplBase.<>c__DisplayClass123_0.<CallWithCommunicationFailureRetry>b__0(Context _) in C:\_releases\ICE\ICE4.3.100.0\Source\Shared\Framework\Epicor.ServiceModel\Channels\ImplBase.cs:line 1014 at Polly.Policy
1.<>c__DisplayClass13_0.b__0(Context ctx, CancellationToken ) in //src/Polly/Policy.TResult.ExecuteOverloads.cs:line 42
at Polly.Retry.RetryEngine.Implementation[TResult](Func3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates
1 shouldRetryResultPredicates, Action4 onRetry, Int32 permittedRetryCount, IEnumerable
1 sleepDurationsEnumerable, Func4 sleepDurationProvider) in /_/src/Polly/Retry/RetryEngine.cs:line 63 at Polly.Retry.RetryPolicy
1.Implementation(Func3 action, Context context, CancellationToken cancellationToken) in /_/src/Polly/Retry/RetryPolicy.cs:line 74 at Polly.Policy
1.Execute(Func3 action, Context context, CancellationToken cancellationToken) in /_/src/Polly/Policy.TResult.ExecuteOverloads.cs:line 82 at Epicor.ServiceModel.Channels.ImplBase.CallWithCommunicationFailureRetry(String methodName, ProxyValuesIn valuesIn, ProxyValuesOut valuesOut, RestRpcValueSerializer serializer) in C:\_releases\ICE\ICE4.3.100.0\Source\Shared\Framework\Epicor.ServiceModel\Channels\ImplBase.cs:line 1013 at Epicor.ServiceModel.Channels.ImplBase.CallWithMultistepBpmHandling(String methodName, ProxyValuesIn valuesIn, ProxyValuesOut valuesOut, Boolean useSparseCopy) in C:\_releases\ICE\ICE4.3.100.0\Source\Shared\Framework\Epicor.ServiceModel\Channels\ImplBase.cs:line 962 at Epicor.ServiceModel.Channels.ImplBase.Call(String methodName, ProxyValuesIn valuesIn, ProxyValuesOut valuesOut, Boolean useSparseCopy) in C:\_releases\ICE\ICE4.3.100.0\Source\Shared\Framework\Epicor.ServiceModel\Channels\ImplBase.cs:line 941 at Ice.Proxy.Lib.RunTaskImpl.RunTask(Int64 ipTaskNum) in C:\_releases\ICE\ICE4.3.100.0\Source\Shared\Contracts\Lib\RunTask\RunTaskProxy.cs:line 63 at Ice.TaskAgent.Support.ServiceCall.RunTaskImplCaller
1.<>c__DisplayClass4_0.b__0(TImpl impl) in C:_releases\ICE\ICE4.3.100.8\Source\TaskAgent\TaskAgentSupport\ServiceCall\RunTaskImplCaller.cs:line 47
at Ice.TaskAgent.Support.ServiceCall.RunTaskImplCaller1.Call[TResult](Func
2 doWork, ExceptionBehavior communicationExceptionBehavior, ExceptionBehavior timeoutExceptionBehavior, Boolean isContinuousProcessingTask) in C:_releases\ICE\ICE4.3.100.8\Source\TaskAgent\TaskAgentSupport\ServiceCall\RunTaskImplCaller.cs:line 150
at Ice.TaskAgent.Support.ServiceCall.RunTaskImplCaller1.Call(Action
1 doWork, ExceptionBehavior communicationExceptionBehavior, ExceptionBehavior timeoutExceptionBehavior, Boolean isContinuousProcessingTask) in C:_releases\ICE\ICE4.3.100.8\Source\TaskAgent\TaskAgentSupport\ServiceCall\RunTaskImplCaller.cs:line 52
at Ice.TaskAgent.Support.ServiceCall.ServiceCaller.<>c__DisplayClass49_0.<RunTask_RunTask>b__0() in C:_releases\ICE\ICE4.3.100.8\Source\TaskAgent\TaskAgentSupport\ServiceCall\ServiceCaller.cs:line 354
at Ice.TaskAgent.Support.ServiceCall.ServiceCaller.<>c__DisplayClass75_0.b__0() in C:_releases\ICE\ICE4.3.100.8\Source\TaskAgent\TaskAgentSupport\ServiceCall\ServiceCaller.cs:line 705
at Ice.TaskAgent.Support.ServiceCall.ServiceCaller.CallWithInvalidSessionHandling[TValue](Func`1 makeCall) in C:_releases\ICE\ICE4.3.100.8\Source\TaskAgent\TaskAgentSupport\ServiceCall\ServiceCaller.cs:line 715
at Ice.TaskAgent.Core.ScheduleProcessor.CallServiceAction(SysTaskRow sysTaskRecord, SysTaskParamRow companyParamRecord, ServiceCallArguments serviceCallArguments, Boolean isContinuousStartupTask)