Skip to main content
Question

Create AR Statement error


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?

4 replies

Nilkanth Dipak
Semi-Pro I
Forum|alt.badge.img+10

Hi ​@MComan62,

Is there any customization published on that screen?

Have you checked the trace?
 


Forum|alt.badge.img
  • Author
  • Freshman I
  • 26 replies
  • 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+7
  • Acumatica Support Team
  • 228 replies
  • 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.

https://community.acumatica.com/archive-275/known-issue-in-rare-cases-the-user-was-unable-to-write-off-the-balances-of-the-invoices-or-payments-of-the-balance-wo-type-14814?tid=14814&fid=275

 


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

Thank you for the suggestion Hkabiri.

 

Unfortunately, it didnt return any results.  


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings