TSV attribute with currency in Board View throws API-1019 / java.lang.NullPointerException

book

Article ID: 242367

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

A Board view with a TSV attribute metric such a Planned Cost can throw API-1019 : Could not process the request due to internal error and

STEPS TO REPRODUCE:

  1. Connect to Clarity - go to Idea - Board View 
  2. Make sure a TSV attribute with currency is added as a metric

Expected Results: The view to display with no error

Actual Results: Error API-1019 : Could not process the request due to internal error.

Error in logs:

ERROR 2022-05-24 08:05:07,298 [http-nio-1444-exec-103] ppm.rest (clarity:admin:8250375__CCC268EF-0DB8-4E57-861F-BD88F9B9AF27:PPM_REST_API) Exception processing request for resource [ideas], query string [/ideas?filter=%28i_ideastatus+%3D+%2712%27%29&limit=1&offset=0&tsvParams=%28periods%3D%28planCost%2Cquarters%2C4%2C2022-01-01T00%3A00%3A00%2Cfiscal%29%29%2C%28workEffortUnit%3Dfte%29]
java.lang.NullPointerException
 at com.ca.platform.osf.object.rest.provider.ODFResourceProvider.setCurrencyAttributeForTSVs(ODFResourceProvider.java:3167)
 at com.ca.platform.osf.object.rest.provider.ODFResourceProvider.getResources(ODFResourceProvider.java:1034)
 at com.ca.platform.osf.object.rest.provider.ODFResourceProvider.getEntities(ODFResourceProvider.java:196)
 at com.ca.ppm.rest.resource.BaseResourceHandler.retrieveResources(BaseResourceHandler.java:238)
 at com.ca.ppm.rest.resource.BaseResourceHandler.retrieveResources(BaseResourceHandler.java:196)
 at com.ca.ppm.rest.resource.ResourceHandler.getResources(ResourceHandler.java:118)
 at jdk.internal.reflect.GeneratedMethodAccessor149.invoke(Unknown Source)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)

Environment

Release : 16.0.1, 16.0.2

Resolution

Workaround: Remove the TSV metric from the view

This is DE65176, currently in review by Engineering