Task creation via Quick Add button fails with error
search cancel

Task creation via Quick Add button fails with error

book

Article ID: 371697

calendar_today

Updated On:

Products

Clarity PPM SaaS

Issue/Introduction

We have refreshed our non-production environment from PROD dump and we noticed that the task creation under project via Quick add button fails with error

An exception occurred while trying to update an object instance task

Environment

Component: Clarity

Release: 16.2.2

Cause

During log review we find below error which is causing the error shown on UI 

org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.lang.NullPointerException: Cannot invoke "com.niku.union.odf.object.Attribute.getDefaultValue()" because "currencyAttr" is null at com.niku.odf.object.ObjectInstanceImpl.checkRequiredAttributes(ObjectInstanceImpl.java:2822) at com.ca.clarity.projmgr.TaskAPIImpl.checkRequiredAttributes(TaskAPIImpl.java:1102) at com.niku.odf.object.ObjectInstanceImpl.update(ObjectInstanceImpl.java:2931) ... 93 more

 The two attributes are identified under task object of datatype Money caused above error. The issue seems to be some data corruption which is resulting in the error where the currency default value is not found.

 

Resolution

It seems to be a data corruption issue and requested to refresh the environment afresh from working PROD instance.