ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Clarity: Error 500 generated when attempting to deactivate an Entity Fiscal Time Period


Article ID: 49649


Updated On:


CA Identity Manager CA Identity Governance CA Identity Portal Clarity PPM SaaS Clarity PPM On Premise



When attempting to 'Deactivate' a Fiscal Time Period, an error message is generated

Error 500 - Internal Server Error. The server could not retrieve the document due to server-configuration or other technical problems. Contact your site administrator.

This happens for ALL Fiscal Time Periods.
If you create a new time period, activate it and immediately try to deactivate it, the error message will appear. This should not occur because the period has not been used yet.

Root Cause:
The issue is caused by the application not recognizing the parent object on a grandchild object where a Fiscal Time Varying attribute is configured.
If a Fiscal TSV attribute is created on a Grand Child sub Object under the Project Object associated with the Entity, this error will occur.


  1. Create a SubObject under the Project Object > 'Project Child'

  2. Create a SubObject under the 'Project Child' > 'Project Grand Child'

  3. On the 'Project Grand Child' object, create a new Fiscal TSV Attribute and configure it in the layouts

  4. Find out the name of the Department or Location OBS that is associated with the Project Object and look to see the name of the associated Entity

  5. Follow the steps below to deactivate the attribute

In testing the configuration, removing the Fiscal TSV attribute on the Project Grand Child Sub Object allows the period to be deactivated.
In testing the configuration using a custom Master Object instead of the Project Master Object, the error message did not appear.

Steps to Reproduce:

  1. Login to Clarity as an administrator

  2. Administration > Finance: Setup > Entities > myEntity > Fiscal Time Periods (revmgr.timePeriodList)

  3. Select / Checkmark a period that is currently activated or create a new time period, activate it and immediately try to deactivate it

  4. Actions Menu > Deactivate

Expected Result: No Error to be generated. The period should be deactivated ; it is not being used yet.

Actual Result: Error 500 is generated. The log file shows a NullPointerException message

Log File Details:

service.ODFService (clarity:admin:5285879__AE45081E-F6AA-4D30-B902-ECC1A41BF0A5:revmgr.activateTimePeriods) 
processRequest Exception
com.niku.union.odf.exception.ODFException: java.lang.NullPointerException
 at com.niku.revenue.timeperiod.FiscalTimePeriodActivateService.process(
 at com.niku.revenue.plan.CustomODFService.doProcess(
 at com.niku.odf.service.BaseODFService.processRequest(
 at com.niku.union.service.binding.ServiceControlBindingJava.processRequest(
 at com.niku.union.service.ServiceControlImpl.processRequest(
 at com.niku.union.service.ServiceControlImpl.processRequest(
 at com.niku.union.web.WebServiceAdapter.processRequest(
 at com.niku.union.web.PortletController.processServiceRequest(
 at com.niku.union.web.PortletController.processProcessActionRequest(
 at com.niku.union.web.PortletController.processRequest(
 at com.niku.union.web.WebActionController.processAction(
 at com.niku.union.web.WebActionController.processRequest(
 at javax.servlet.http.HttpServlet.service(
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
 at com.niku.union.web.filter.GZIPResponseFilter.doFilter(
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
 at com.niku.union.web.filter.CharsetFilter.doFilter(
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
 at org.apache.catalina.core.StandardWrapperValve.invoke(
 at org.apache.catalina.core.StandardContextValve.invoke(
 at org.apache.catalina.core.StandardHostValve.invoke(
 at org.apache.catalina.valves.ErrorReportValve.invoke(
 at org.apache.catalina.valves.AccessLogValve.invoke(
 at org.apache.catalina.core.StandardEngineValve.invoke(
 at org.apache.catalina.connector.CoyoteAdapter.service(
 at org.apache.coyote.http11.Http11Processor.process(
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
 Caused by: com.niku.union.odf.exception.ODFException:java.lang.NullPointerException
 at com.niku.revenue.timeperiod.FiscalTimePeriodActivateService.deactivateTimePeriods(
 at com.niku.revenue.timeperiod.FiscalTimePeriodActivateService.process(
 ... 33 more
 Caused by: java.lang.NullPointerException
 at com.niku.revenue.timeperiod.FiscalTimePeriodActivateService.getCustomFTSVDynaQuery(
 at com.niku.revenue.timeperiod.FiscalTimePeriodActivateService.deactivateTimePeriods(
 ... 34 more




Resolved in Clarity 13.1.0

Keywords: CLARITYKB, CLRT-67791, clarity13resolved, clarity1310resolved.


Release: ESPCLA99000-13.1-Clarity-Extended Support Plus