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.

Jobs fail when called within a process

book

Article ID: 222003

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

After upgrading  to 15.9.3, the following jobs failed when called within a process:

  • Update Earned Value History
  • Update Earned Value and Cost Total
  • Post to WIP

When running the jobs standalone, the jobs are complete.

Steps to Reproduce:

  1. Run the process that calls one of the jobs reported above.

Results: Generic error in UI is: NJS-0401: Execution of job failed

Example:

The BG error is:

ERROR 2021-08-23 19:11:50,267 [Dispatch bbUpdate Earned Value History : [email protected] (tenant=clarity)] jobs.UpdateEVTotalsJob (clarity:admin:session:bbUpdate Earned Value History) ---> could not execute UpdateEVHistoryJob (5076050)

java.lang.NumberFormatException: Error parsing number <attribute dataType="string" name="projectId" referencedObjectId="SCH_BROWSE_PROJECT" referencedObjectCardinality="1" isActive="true" isRequired="false" operation="add" xmlns="http://schemas.niku.com/2002/odf">

<data/>

</attribute>

 

at com.niku.union.utility.DataFormatUtil.parseNumber(DataFormatUtil.java:262)

at com.niku.union.utility.DataFormatUtil.parseInt(DataFormatUtil.java:110)

at com.niku.evm.Utils.EVSlicer.SliceHistorical(EVSlicer.java:384)

at com.niku.evm.jobs.UpdateEVHistoryJob.run(UpdateEVHistoryJob.java:226)

at com.niku.evm.jobs.UpdateEVHistoryJob.scheduledEventFired(UpdateEVHistoryJob.java:67)

at com.niku.njs.Dispatcher$BGTask.run(Dispatcher.java:746)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

at java.base/java.lang.Thread.run(Thread.java:829)

ERROR 2021-08-24 18:45:04,265 [Dispatch ccUpdate Earned Value and Cost Totals : : [email protected] (tenant=clarity)] jobs.UpdateEVTotalsJob (clarity:admin:session:ccUpdate Earned Value and Cost Totals) ---> could not execute UpdateEVTotalsJob (5076057)
java.lang.NumberFormatException: Error parsing number <attribute id="5010015" dataType="string" name="projectId" referencedObjectId="BROWSE_INV_INVESTMENTS" referencedObjectCardinality="1" referencedObjectName="Project browse" isRequired="false" operation="modify" xmlns="http://schemas.niku.com/2002/odf">
  <data/>
</attribute>

 at com.niku.union.utility.DataFormatUtil.parseNumber(DataFormatUtil.java:262)
 at com.niku.union.utility.DataFormatUtil.parseInt(DataFormatUtil.java:110)
 at com.niku.evm.Utils.EVSlicer.getFilterCondition(EVSlicer.java:596)
 at com.niku.evm.Utils.EVSlicer.SliceCurrent(EVSlicer.java:220)
 at com.niku.evm.jobs.UpdateEVTotalsJob.run(UpdateEVTotalsJob.java:215)
 at com.niku.evm.jobs.UpdateEVTotalsJob.scheduledEventFired(UpdateEVTotalsJob.java:66)
 at com.niku.njs.Dispatcher$BGTask.run(Dispatcher.java:746)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
 at java.base/java.lang.Thread.run(Thread.java:829)

Cause

This is reported as DE62284

Environment

Release : 15.9.3

Resolution

Resolved in 16.0

Workaround 1:  Populate a value for the parameter which fails in the job.

For eg., Post To WIP fails for the parameter Investment OBS (as shown in the above screenshot).

  1. Navigate to the process step which runs the PTW job
  2. Populate a value for the Investment OBS.
  3. Ideally, this should be the top level OBS so it covers the entire Org same as leaving it blank.
    Note: In order to modify the process step, all the instances of this process will have to be deleted first and then place the process to Draft mode.

Workaround 2:  Run the job manually or scheduled as a "job" and not launched by a process

Additional Information

See also: Clarity frequently reported issues

Attachments