We have had an issue for a while now that we have just ‘dealt with’, as there is another way to view the data, however it is at the point now where I just want to find the underlying cause.
When I go to Supplier Tracker > Links > Invoices then either Closed or All, and click “Retrieve”, an Application Error. The full details of the error are shown below.
Application Error
Exception caught in: Epicor.ServiceModel
Error Detail
Message: An error occurred while updating the entries. See the inner exception for details.
Inner Exception Message: Parameter value ‘-158329674399744.000’ is out of range.
Program: Epicor.ServiceModel.dll
Method: ShouldRethrowNonRetryableExceptionClient Stack Trace
at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)
at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)
at Ice.IceDataContext.SaveChanges(SaveOptions options) in C:_Releases\ICE\3.1.600.15\Source\Framework\Epicor.System\Data\IceDataContext.cs:line 352
at Ice.IceDataContext.Validate[TLinqRow](TLinqRow row) in C:_Releases\ICE\3.1.600.15\Source\Framework\Epicor.System\Data\IceDataContext.cs:line 311
at Erp.Services.BO.APInvoiceSvc.adjustRoundingVar(Int32 inVendorNum, String inInvoiceNum, Int32 inInvoiceLine, String inLineType, Decimal inVariance, Decimal inDocVariance, Decimal inRpt1Variance, Decimal inRpt2Variance, Decimal inRpt3Variance, Boolean& forceRefreshed) in C:_Releases\ERP\UD10.1.600.15\Source\Server\Services\BO\APInvoice\APInvoice.cs:line 24787
at Erp.Services.BO.APInvoiceSvc.getMiscChargeVar(Decimal& miscChargeVar, Decimal& docMiscChargeVar, Decimal& rpt1MiscChargeVar, Decimal& rpt2MiscChargeVar, Decimal& rpt3MiscChargeVar, Boolean& forceRefreshed, Boolean Tracker) in C:_Releases\ERP\UD10.1.600.15\Source\Server\Services\BO\APInvoice\APInvoice.cs:line 26350
at Erp.Services.BO.APInvoiceSvc.APInvHedAfterGetRowsTracker() in C:_Releases\ERP\UD10.1.600.15\Source\Server\Services\BO\APInvoice\APInvoice.cs:line 5021
at Erp.Services.BO.APInvoiceSvc.GetRowsForTracker(Int32 vendnum, Boolean all, Boolean open) in C:_Releases\ERP\UD10.1.600.15\Source\Server\Services\BO\APInvoice\APInvoice.cs:line 4942
at Erp.Services.BO.APInvoiceSvcFacade.GetRowsForTracker(Int32 vendnum, Boolean all, Boolean open) in C:_Releases\ERP\UD10.1.600.15\Source\Server\Services\BO\APInvoice\APInvoiceSvcFacade.cs:line 118
at SyncInvokeGetRowsForTracker(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\3.1.600.15\Source\Framework\Epicor.System\Hosting\OperationBoundInvoker.cs:line 59 at Epicor.Hosting.OperationBoundInvoker.Invoke(Object instance, Func
2 func) in C:_Releases\ICE\3.1.600.15\Source\Framework\Epicor.System\Hosting\OperationBoundInvoker.cs:line 47
at Epicor.Hosting.Wcf.EpiOperationInvoker.Invoke(Object instance, Object inputs, Object& outputs) in C:_Releases\ICE\3.1.600.15\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)Inner Trace:
Parameter value ‘-158329674399744.000’ is out of range.
: at System.Data.SqlClient.TdsParser.TdsExecuteRPC(SqlCommand cmd, _SqlRPC rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc, Boolean sync, TaskCompletionSource1 completion, Int32 startRpc, Int32 startParam) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource
1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary2 identifierValues, List
1 generatedValues)
at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet dataSets)
at Erp.Proxy.BO.APInvoiceImpl.GetRowsForTracker(Int32 vendnum, Boolean all, Boolean open)
at Erp.Adapters.APInvoiceAdapter.GetRowsForTracker(Int32 vendor, Boolean all, Boolean open)Inner Exception
Parameter value ‘-158329674399744.000’ is out of range.
I queried the APInvDtl table for all records with the VendorID of 202 and copied it into a text file (to prevent Excel from manipulating anything if I were to paste it into there) and searched for just a portion of that value (674399) to see if it appeared anywhere, and it did not.
I can only assume that their is a piece of malformed data somewhere in that table relating to that VendorID but with over 1 million individual data points, it will be next to impossible to locate.
Can anyone offer some advice/assistance on the best way to figure this out?