My Oracle Support Banner

Invalid Parameter Error Occurs When Setting Roles Attribute In Team Table Of Program Object By SDK (Doc ID 2467861.1)

Last updated on FEBRUARY 03, 2020

Applies to:

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

Symptoms

On : 9.3.6.0 version, Software Development Kit

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
-----------------------
The issue can be reproduced at will with the following 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


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