My Oracle Support Banner

Removing Rows From Change | Relationships Table Using Software Development Kit(SDK) Fails With Error 'ConcurrentModificationException' (Doc ID 3002356.1)

Last updated on FEBRUARY 06, 2024

Applies to:

Oracle Agile PLM Framework - Version 9.3.6.0 and later
Information in this document applies to any platform.

Symptoms


Agile SDK code that removes rows from Relationships table of Change Order fails with error: "ConcurrentModificationException"

The issue can be reproduced at will with the following steps:
1. Run SDK program that removes rows from Change | Relationships table using below code snippet.

ITable contentTBL =
changeObject.getTable(ChangeConstants.TABLE_RELATIONSHIPS);
ITwoWayIterator contentObjectIt = contentTBL.getTableIterator();


while(contentObjectIt.hasNext())
{
IRow contentRow = (IRow)contentObjectIt.next();
IProgram taskObject = (IProgram) contentRow.getReferent();
String taskObjectNumber = taskObject.getName();
System.out.println(String.format( "task Number [%-15s]=======",taskObjectNumber ));
contentTBL.removeRow(contentRow);
}


2. Program fails with error.



Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.