Event Process Extension (PX) is Failing on the getValue Method (Doc ID 1496278.1)

Last updated on AUGUST 21, 2016

Applies to:

Oracle Agile PLM Framework - Version 9.3.0.0 and later
Information in this document applies to any platform.
***Checked for relevance on 11-May-2015***

Symptoms

When attempting to trigger Change Status Event PXs, they update some fields but not others and are failing on the getValue() method, the following error occurs in the History Tab and Event Monitor

Error:
Call APIException.getRootCause() for details

Error in the application server log when printing out the stack trace in code - e.printStackTrace();

java.util.NoSuchElementException
  at com.agile.api.pc.TableIterator.next(TableIterator.java:82)
  at com.agile.api.pc.DataObject.getValue(DataObject.java:174)
  at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)


Steps:
 The issue can be reproduced at will with the following steps:
 1. In Java Client, create some Change Status Event PXs that update multiple attributes including calculating date fields to find out how many days have been in each status.
 2. Create a change order and see that the date fields have been populated with the current time stamp by the PX.
 3. Change the status to Submitted.
 4. See that the Submitted date and week have populated but the ‘Days in Originated’ has not. It should be ‘0’. The number of business days between the Date Originated and the Date Submitted.
 5. In the history tab and Event Monitor it shows the error:
  eco_mco_change_metrics:Call APIException.getRootCause() for details
 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms