Task stuck

Hi Experts

I appear to have a task stuck in a loop. It does not appear in the sys monitor and still persists after a restart. This makes me think its somewhere in the DB and comes back to life after the restart, but I don’t know where to look. It has been created by a UOM issue but ignore that for now.

I also cannot find the C:_Releases DIR. I assume this is temporary.

The error is in the event viewer as below

Any suggestions would be great to hunt down and kill this process / task.


	Description: An error occurred while invoking Epicor function:
	Description: Shipped Qty has a value of 20.99500000 , the UOM allows for 2 decimals.  ()
	Program: Epicor.Functions.Core.dll
	Method: ProcessRecordedExceptions
	Line Number: 143
	Column Number: 21
	Server Trace Stack:    at Epicor.Functions.FunctionBase`3.ProcessRecordedExceptions() in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Internal\Lib\Epicor.Functions.Core\FunctionBase.cs:line 143
   at Epicor.Functions.FunctionBase`3.Run(TInput input) in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Internal\Lib\Epicor.Functions.Core\FunctionBase.cs:line 77
   at EFx.Utilities.Implementation.ChangeDatesImpl.AdapterRun(Object[] input)
   at Ice.Internal.SysTask.Implementation.ScopedFunctionCaller.InvokeFunction(FunctionRefId functionRefId, ContextTableset bpmContext, Object[] input) in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Internal\SysTask\BpmProcessAction\Implementation\ScopedFunctionCaller.cs:line 52
   at Ice.Internal.SysTask.Implementation.InvokeEpicorFunctionAsyncAction.InvokeCore(StandardActionHeader standardHeader, IReadOnlyDictionary`2 headers, IAsyncActionReader dataReader, IceContext db) in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Internal\SysTask\BpmProcessAction\Implementation\InvokeEpicorFunctionAsyncAction.cs:line 51
   at Ice.Internal.SysTask.Implementation.AsyncActionBase.Invoke(IAsyncActionReader dataReader, IceContext db) in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Internal\SysTask\BpmProcessAction\Implementation\AsyncActionBase.cs:line 62
   at Ice.Internal.SysTask.BpmProcessAction.CallHandler(IBpmAsyncAction handler, Guid rowId) in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Internal\SysTask\BpmProcessAction\BpmProcessAction.cs:line 153



	Program: Ice.Internal.SysTask.BpmProcessAction.dll
	Method: CallHandler
	Line Number: 153
	Column Number: 24
	Server Trace Stack:    at Ice.Internal.SysTask.BpmProcessAction.CallHandler(IBpmAsyncAction handler, Guid rowId) in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Internal\SysTask\BpmProcessAction\BpmProcessAction.cs:line 153
   at Ice.Internal.SysTask.BpmProcessAction.ProcessQueuedItems() in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Internal\SysTask\BpmProcessAction\BpmProcessAction.cs:line 76
   at Ice.Internal.SysTask.QueueProcessor`2.RunSystemTask() in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Internal\SysTask\QueueProcessor\QueueProcessor.cs:line 60
   at Ice.Hosting.SystemTaskCaller.RunSystemTask(Type systemTaskType) in C:\_releases\ICE\ICE3.2.700.14\Source\Framework\Epicor.Ice\Hosting\TaskCaller\SystemTaskCaller.cs:line 66
   at Ice.Hosting.SystemTaskCaller.ExecuteTasks() in C:\_releases\ICE\ICE3.2.700.14\Source\Framework\Epicor.Ice\Hosting\TaskCaller\SystemTaskCaller.cs:line 47
   at Ice.Services.Lib.RunTaskSvc.RunSystemTasks() in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Services\Lib\RunTask\RunTask.cs:line 255
   at Ice.Services.Lib.RunTaskSvcFacade.RunSystemTasks() in C:\_Releases\ICE\ICE3.2.700.0\Source\Server\Services\Lib\RunTask\RunTaskSvcFacade.cs:line 105
   at SyncInvokeRunSystemTasks(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at Epicor.Hosting.OperationBoundInvoker.InnerInvoke(Object instance, Func`2 func) in C:\_releases\ICE\ICE3.2.700.14\Source\Framework\Epicor.System\Hosting\OperationBoundInvoker.cs:line 59
   at Epicor.Hosting.OperationBoundInvoker.Invoke(Object instance, Func`2 func) in C:\_releases\ICE\ICE3.2.700.14\Source\Framework\Epicor.System\Hosting\OperationBoundInvoker.cs:line 28
   at Epicor.Hosting.Wcf.EpiOperationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) in C:\_Releases\ICE\ICE3.2.700.0\Source\Framework\Ice.Server.Wcf.Core\Hosting\Wcf\EpiOperationInvoker.cs:line 23
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
   at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
   at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
   at System.ServiceModel.Dispatcher.ChannelHandler.OnAsyncReceiveComplete(IAsyncResult result)
   at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
   at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
   at System.ServiceModel.Channels.TransportDuplexSessionChannel.TryReceiveAsyncResult.OnReceive(IAsyncResult result)
   at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
   at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
   at System.ServiceModel.Channels.SynchronizedMessageSource.ReceiveAsyncResult.OnReceiveComplete(Object state)
   at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)
   at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.Security.NegotiateStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.NegotiateStream.ReadCallback(AsyncProtocolRequest asyncRequest)
   at System.Net.AsyncProtocolRequest.CompleteRequest(Int32 result)
   at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32 bytes)
   at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
   at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
   at System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object state)
   at System.Net.Sockets.SocketAsyncEventArgs.OnCompleted(SocketAsyncEventArgs e)
   at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSuccess(SocketError socketError, Int32 bytesTransferred, SocketFlags flags)
   at System.Net.Sockets.SocketAsyncEventArgs.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

Do you have this task scheduled?

Hi Jason,

Thanks

Not scheduled.

It pops up every 15 seconds or so in the event viewer as an error.

Do you have an outside service making the call into the function?

No, there is no outside service as far as I know.

We have some sys agents that run our EDI and automated invoicing. They run every 10 minutes. We have a few others that run less frequently.

Are you restarting the app server and task agent?

Run a BAQ on table Ice.SysAgentTask and see what you get.

Hi Doug,

I will need to check. Might only be the app server.

Thanks Kevin.

Yes. All ok . No active tasks or scheduled tasks occurring every few seconds. We have tasks every 15 minutes for EDI.

HI Doug

Everything has been stopped and restarted in this order …task agent, IIS pools then restart. Reverse order on restart.

Issue is still here.

When task agent starts issue comes back.

why ignore, is there a DB record with unusable data somehow triggering something?

Thanks Steve,

I think you are right as the error relates to a UOM issue with too many decimals. I haven’t been able to locate that yet. As such I am concentrating on finding the task that is running that reads this file or runs a process that creates the error. I have queried-read all sales orders that has this error qty in it and all are closed / invoiced.

A bit stuck for answers and finding the fault.

Cheers