Started getting a “Object reference not set to an instance of an object.” error in the SO Entry form, but only when opening certain Orders.
Ruled out it being caused by a customization, because it even happens when we run the Base form (i.e. no customizations).
The “Details” for the error message are below.
Any ideas on where to look?
Exception caught in: Epicor.ServiceModel
Message: Object reference not set to an instance of an object.
Client Stack Trace
at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet dataSets)
at Erp.Proxy.BO.SalesOrderImpl.GetByID(Int32 orderNum)
at Erp.Adapters.SalesOrderAdapter.OnGetByID(Int32 ID)
at Ice.Lib.Framework.EpiBaseAdapter.GetByID(Int32 intId)
at Erp.UI.App.SalesOrderTracker.Transaction.GetOrderData(Int32 orderNum)
This tells you its happening at GetByID looks like it could be bad data of some sort? Have you or someone else been playing with SQL Direct updates by chance?
Does it happen to all users? if not it could be a personalization but since its failing on GetByID and only some records I suspect bad data.
Have you tried restarting your app servers (iisreset on app server)? Bar that, sounds like maybe some bad data got into your SO tables, might run some SQL queries to look at them under the hood. I’ve seen before where we get negative numbers where the UI doesn’t expect them, but that is typically a different error message (something about unable to bind negative numbers to control X).
There might be some middle ground between recycling the app pool, and doing an IISRESET, which would make Nathan feel better while still clearing out the gremlins that like to sneak into Epicor 10. (Just had some gremlins in our test E10.1.500.14 environment this morning… couldn’t search for Setup Groups - got an error about the WCF service or BO not being activated or something… which just went away after iisreset). I think if you do an actual STOP of the app pool, wait for it to be dead in Task Manager, and then start it again, it does a little better job of clearing the gremlins than doing a recycle, which I think attempt to bring up the new app pool and then “hand things over” before taking down the old one.
That said, thanks for the thoughts on ways to avoid iisreset Nathan - I guess even though I knew most of the methods you described, it just never really occurred to me that I should try them sometimes before “pulling the plug” even though I would only use that as a last resort on hardware.