Support Article

Deferred save is failing in activity RecalculateAndSave

SA-30591

Summary



During flow processing a deferred save fails in the activity RecalculateAndSave with a null pointer exception.


Error Messages



JavaStackTrace: java.lang.NullPointerException
at com.pega.pegarules.data.internal.access.Indexer$Updates.write(Indexer.java:1444)
at com.pega.pegarules.data.internal.access.Indexer.calulateIndexesIncrementallyForInstance(Indexer.java:455)

 


Steps to Reproduce

  1. Create an item with an index configured to write even if source properties are empty.
  2. Configure a custom agent to call the activity PerformFlowAction on that item.
  3. Observe the error in the log.


Root Cause



Internal code was assuming the existence of a list in a context where one did not exist.

Resolution

HFix-30442 resolves this by adding code that avoids referring to the list if it does not exist.
 

Published November 18, 2016 - Updated November 25, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.