Skip to main content
Question

Create AR Statement error

  • April 3, 2025
  • 5 replies
  • 95 views

Forum|alt.badge.img

We have been creating statements for several months and today when we went to run statements we got an error ‘ Nullable object must have a value’ . I have checked the statement cycles and the preferences and have not found a problem.  Any suggestions on what to check next?

5 replies

DipakNilkanth
Pro III
Forum|alt.badge.img+13

Hi ​@MComan62,

Is there any customization published on that screen?

Have you checked the trace?
 


Forum|alt.badge.img
  • Author
  • Freshman I
  • April 3, 2025

there is a customization from Paya.  I am not good reading Traces, so I included it here.  

 

 at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Nullable`1.get_Value() at PX.Objects.AR.StatementCycleProcessBO.AccumulateAgeBalances(PXGraph graph, ARStatementCycle statementCycle, ARStatement statement, ARRegister document, Boolean ageCredits) at PX.Objects.AR.StatementCycleProcessBO.AccumulateAgeBalancesIntoStatements(ARStatementCycle statementCycle, DateTime statementDate, IEnumerable`1 openDocuments, IDictionary`2 statements, Boolean ageCredits) at PX.Objects.AR.StatementCycleProcessBO.GenerateCustomerStatement(ARStatementCycle statementCycle, Customer customer, DateTime statementDate, IDictionary`2 familyStatements, IDictionary`2 familyStatementDetails, IDictionary`2 deletedFamilyStatementsTrace, Boolean isOnDemand) at PX.Objects.AR.StatementCycleProcessBO.GenerateStatementForCustomerFamily(StatementCreateBO persistGraph, ARStatementCycle statementCycle, IEnumerable`1 customerFamily, DateTime statementDate, Boolean clearExisting, Boolean isOnDemand) at PX.Objects.AR.StatementCycleProcessBO.GenerateStatement(ARStatementCycle cycle, DateTime statementDate) at PX.Objects.AR.StatementCycleProcessBO.ProcessCycles(StatementCycleProcessBO graph, ARStatementCycle aCycle) at PX.Data.PXProcessingBase`1.<>c__DisplayClass98_0`1.<SetProcessDelegate>b__1(Graph g, Table r, CancellationToken _) at PX.Data.PXProcessing.<>c__DisplayClass9_0`2.<ProcessItem>b__0(TTable item, CancellationToken itemCancellationToken) at PX.Data.PXProcessing.ProcessItem[TTable](List`1 list, Int32 i, Action`2 action, PXProcessingInfo`1 info, CancellationToken cancellationToken)

hkabiri
Acumatica Moderator
Forum|alt.badge.img+8
  • Acumatica Support Team
  • April 3, 2025

@MComan62  Please check the following article as the issue might be caused by some orphaned record created with faulty Write Off. There is a GI which should show you the orphaned records if any.

 


Forum|alt.badge.img
  • Author
  • Freshman I
  • April 3, 2025

Thank you for the suggestion Hkabiri.

 

Unfortunately, it didnt return any results.  


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • July 1, 2025

Hi ​@MComan62 were you able to find a solution? Thank you!