Invalid Parameter Error Occurs When Setting Roles Attribute In Team Table Of Program Object By SDK
(Doc ID 2467861.1)
Last updated on SEPTEMBER 14, 2024
Applies to:
Oracle Agile PLM Framework - Version 9.3.6.0 and laterInformation in this document applies to any platform.
Symptoms
When attempting to add roles to Team table of Program object by Agile SDK,
the following error occurs.
Error:
Error code : 60018
Error message : Invalid parameter.
at com.agile.api.pc.Session.createError(Session.java:2039)
at com.agile.api.pc.APIObject.createError(APIObject.java:76)
at com.agile.api.pc.CascadeList.setSelection(CascadeList.java:1537)
at com.mycompany.TestRoleUpdate.updateRolesinProgram(TestRoleUpdate.java:71)
at com.mycompany.TestRoleUpdate.main(TestRoleUpdate.java:38)
Steps:
ITable projectTeamTable = project.getTable(ProgramConstants.TABLE_TEAM);
if (projectTeamTable.size() > 0) {
Iterator projectItr = projectTeamTable.getTableIterator();
while (projectItr.hasNext()) {
IRow projRow = (IRow) projectItr.next();
ICell role = projRow.getCell(ProgramConstants.ATT_TEAM_ROLES);
IAgileList list = (IAgileList) role.getValue();
String roleValue = list.toString();
String[] roleArr = roleValue.split(";", -1);
ArrayList<String> roleList = new ArrayList<String>();
for (String roleTemp : roleArr) {
roleList.add(roleTemp);
}
roleList.add("Program Manager");
IAgileList values = role.getAvailableValues();
values.setSelection(roleList.toArray());
role.setValue(values);
System.out.println("OK");
}
}
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 |