Hi,
In this topic
it was advised to use following code:
string referenceNbr = "001991";
APPaymentEntry graph = PXGraph.CreateInstance<APPaymentEntry>();
graph.Document.Current = graph.Document.Search<APPayment.refNbr>(referenceNbr) graph.APPost.Current = graph.APPost.SelectSingle();
graph.reverseApplication.Press();
However, in reverseApplication method I get Object reference

The exception occurs in this method inside reverseApplication


I can not figure out which “e” object in upper method is null, because debug does not allow to view call stack or check objects in Watch for Acumatica classes

Suggest please, how it can be fixed or implemented by another approach that will allow to return Item back after it was released