Post Timesheets job completes successfully, however the BG Log has many error messages indicating a NullPointerException.
The Timesheet Entry Actual Hours are posted to the Task Assignment, but the Task Assignment Actual Cost value is NOT updated.
When you examine the expanded Error message in the BG log, it indicates that the NullPointerException is occurring when it encounters the code to 'GetTeamCosts'.
Typically, customers report issues with the Task Assignment Actual Cost value showing a zero value or not matching the amounts that are posted into the financial module (Post To WIP). Upon investigation, we see these error messages in the Background (BG) log files.
Steps To Reproduce:
Expected Result: The Post Timesheets job completes successfully, no errors in the BG log and the Task Assignment Actual Cost value is correct
Actual Result: The Post Timesheets job completes successfully through the application UI, but the BG log file is full of 'NullPointerException' errors (a short error or an expanded error) and the Task Assignment Actual Cost value is not correct
ERROR MESSAGE IN BG LOGS: ERROR 2013-12-13 14:00:02,383 [Dispatch pool-4-thread-6 : (tenant=clarity)] niku.xql2 (clarity:adminuser:5252911__BA7DB8FC-E42C-41F4-AECE-04894C05DEBD:Post Timesheets TESTRUN_001) java.lang.NullPointerException ERROR 2013-12-13 14:26:32,916 [Dispatch pool-4-thread-1 : (tenant=clarity)] niku.xql2 (clarity:adminuser:5252911__BA7DB8FC-E42C-41F4-AECE-04894C05DEBD:Post Timesheets TESTRUN_002) java.lang.NullPointerException at com.niku.union.persistence.utils.Utils.createStatementInternal(Utils.java:675) at com.niku.union.persistence.utils.Utils.createStatement(Utils.java:622) at com.niku.xql2.jdbc.JDBCRecordSet.(JDBCRecordSet.java:82) at com.niku.projmgr.xql2.util.GetTeamCost.getTeamCostRates(GetTeamCost.java:141) at com.niku.projmgr.xql2.util.GetTeamCost.getTeamCostRates(GetTeamCost.java:45) at com.niku.projmgr.xql2.functions.baseline.GetResourceCostCurves.Run(GetResourceCostCurves.java:17) at com.niku.projmgr.xql2.functions.baseline.CalculateCostCurve.loadRateMatrix(CalculateCostCurve.java:236) at com.niku.projmgr.xql2.functions.baseline.CalculateCostCurve.getActualsCostCurve(CalculateCostCurve.java:169) at com.niku.projmgr.xql2.functions.PostTimeEntry.getActualsCostCurve(PostTimeEntry.java:266) ... more ...
WORKAROUND:
There is no identified workaround to prevent this issue from occurring.
If this issue occurs and you see the error message in the log file, log a new support case and provide the following details for next actions
STATUS/RESOLUTION: