We recently upgraded to EpicorERP 10.2.100.19.
Since the upgrade, I get an error when I try to add a shipping line to an existing pack using WCF calls. I get the same error when I try to do it with BL Tester.
I open Epicor\ERP10\LocalClients\EpicorERP\Erp.Contracts.BO.CustShip.dll. I invoke GetByID and provide the packNum. I persist DataSet between method calls then invoke GetNewOrdrShipDtl and provide the same packNum and the corresponding orderNum and I get the error below.
Any assistance would be appreciated.
Cannot add a shipping line.
Business Logic Error
Business Layer Exception
BusinessObjectException
Description: Cannot add a shipping line.
Program: Erp.Services.BO.CustShip.dll
Method: ShipDtlAfterGetNew
Line Number: 30225
Column Number: 21
Table: ShipDtl
Server Trace Stack: at Erp.Services.BO.CustShipSvc.ShipDtlAfterGetNew() in C:_Releases\ERP\UD10.2.100.19\Source\Server\Services\BO\CustShip\CustShip.cs:line 30225
at Erp.Services.BO.CustShipSvc.OnRowEvent(DataTableEventType type, String tableName, IceRow row) in C:_Releases\ERP\UD10.2.100.19\Source\Server\Services\BO\CustShip\CustShip.Designer.cs:line 618
at Ice.Services.Trace.TablesetProfilingCollector.DoRowEventTrace(String tableName, String methodName, Int32 rowCount, Action action) in C:_Releases\ICE\ICE3.2.100.19\Source\Framework\Epicor.Ice\Services\TablesetProfilingCollector.cs:line 146
at Ice.TablesetBound3.InnerGetNew[TDataTable,TDataRow](TDataTable dataTable, Action1 setForeignKeys) in C:_Releases\ICE\ICE3.2.100.19\Source\Framework\Epicor.Ice\Services\TablesetBound.cs:line 388
at Erp.Services.BO.CustShipSvc.GetNewShipDtl(CustShipTableset& ds, Int32 packNum) in C:_Releases\ERP\UD10.2.100.19\Source\Server\Services\BO\CustShip\CustShip.Designer.cs:line 1764
at Erp.Services.BO.CustShipSvc.GetNewOrdrShipDtl(CustShipTableset& ds, Int32 packNum, Int32 orderNum) in C:_Releases\ERP\UD10.2.100.19\Source\Server\Services\BO\CustShip\CustShip.cs:line 12319
at Erp.Services.BO.CustShipSvcFacade.GetNewOrdrShipDtl(CustShipTableset& ds, Int32 packNum, Int32 orderNum) in C:_Releases\ERP\UD10.2.100.19\Source\Server\Services\BO\CustShip\CustShipSvcFacade.cs:line 1995
at SyncInvokeGetNewOrdrShipDtl(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Epicor.Hosting.OperationBoundInvoker.InnerInvoke(Object instance, Func2 func) in C:\_Releases\ICE\ICE3.2.100.19\Source\Framework\Epicor.System\Hosting\OperationBoundInvoker.cs:line 59 at Epicor.Hosting.OperationBoundInvoker.Invoke(Object instance, Func2 func) in C:_Releases\ICE\ICE3.2.100.19\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.100.19\Source\Framework\Epicor.System\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.SecurityChannelListener1.ReceiveItemAndVerifySecurityAsyncResult2.InnerTryReceiveCompletedCallback(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)