My users (and I) get this error when trying to add a Buy To Job line to a PO that already has a Buy To Order line (not sure if that is related). The details of the error only show:
Application Error
Exception caught in: Epicor.ServiceModel
Error Detail
============
Message: Object reference not set to an instance of an object.
Program: Epicor.ServiceModel.dll
Method: ShouldRethrowNonRetryableException
Client Stack Trace
==================
at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet[] dataSets)
at Erp.Proxy.BO.POImpl.Update(PODataSet ds)
at Erp.Adapters.POAdapter.OnUpdate()
at Ice.Lib.Framework.EpiBaseAdapter.Update()
at Erp.UI.App.POEntry.Transaction.Update()
I disabled the the BPMs related to PO’s but still get it. I’ve enabled Trcaing, but nothing jumps out at me in there.
I wonder if you could use a BPM for debugging. A pre-process on the update method that either logs or displays the values of all the parameters and tables. I don’t know that you’d get anything different than tracing, but might help you spot null objects.
I sometimes decompile the assemblies and look for hints, too.