Getting Relationships table of Sourcing Project

Hi All,

We are unable to get the Relationships table of Sourcing Project using SDK. It gives exception whenever we try to access the Relationships table although it is visible in the web client, working and the user has all required privileges.

 

Sample Code:

IProject prj = (IProject) session.getObject(IProject.OBJECT_TYPE, “PRJ00001”);0

ITable relTbl = prj.getTable(CommonConstants.TABLE_RELATIONSHIPS);

 

Exception:

 

Error code : 60018

Error message : Invalid parameter.

      at com.agile.api.pc.Session.createError(Session.java:1927)

      at com.agile.api.pc.APIObject.createError(APIObject.java:76)

      at com.agile.api.pc.project.Project.getObjectTable(Project.java:346)

      at com.agile.api.pc.DataObject.getTable(DataObject.java:680)

      at Test.main(Test.java:29)

 

It gives the same exception when we use prj.getTable(CommonConstants.TABLE_RELATIONSHIPS) or prj.getRelationship() on the project.

Also, If we print all the available table names using prj.getTables(), there is no Relationship table in it.

Any help would be highly appreciated.

Thanks!

Add Comment
1 Answer(s)

Hi,

Please be sure that class Project has the tab attachment enabled in the Java Client.

Agile Angel Answered on May 25, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.