Skip to main content
1-Visitor
March 3, 2020
Question

Unable to set target path to document links while importing file to IBM Doors Database in JAVA API

  • March 3, 2020
  • 0 replies
  • 1039 views
In Remote API  reference document page 17 topic 'Define path to document and links'. here

I am using PTC Integrity Requirements Connector (IRC) v 3.4
While importing document ( xml and reqif files into doors database) I am trying to set Target-Path for links (of document). 

// check document in the configuration and set the target path
IRemoteImportDocument[] docs = configuration.getImportDocuments();
for (IRemoteImportDocument doc : docs){
doc.setTargetPath(targetPath);
doc.getRelationGroups()[0].setTargetPath(targetPath);   // here I am not able to set the path , I am getting error :
Exception : com.atego.exerpt.exchange.remote.communication.core.DisabledException: The option 'target path' of import relation group 'DOORS Links' is disabled and cannot be changed.
2020-03-03 11:26:00 ERROR - Failed to import documents.

}