It's all about the answers!

Ask a question

RTC-CRJAZ6032E Multiple timelines in the same project area use the same identifier


masoom Abdullah (537) | asked May 03 '17, 7:55 a.m.

 Hi there,


I am trying to copy the timelines from one project area to another. The first timeline is created in other project area, after that I am getting the following error.

CRJAZ6032E Multiple timelines in the same project area use the same identifier.

Code Snippet:

private static void save(IDevelopmentLineHandle iDevelopmentLineHandle, IAuditableClient iAuditableClient, List<IProjectArea> allProjectAreas, IProcessItemService service, IProgressMonitor monitor) throws TeamRepositoryException {
IDevelopmentLine sDevelopmentLine = (IDevelopmentLine) iAuditableClient.fetchCurrentAuditable(iDevelopmentLineHandle, ItemProfile .createFullProfile(IDevelopmentLine.ITEM_TYPE), null);
IProjectArea dProjectArea=null;
Iterator<IProjectArea> iterator = allProjectAreas.iterator(); 
       while (iterator.hasNext()) { 
           dProjectArea = iterator.next(); 
           if ("Destination Project Area (CCM)".equals(dProjectArea.getName())) { 
               break; 
           } 
       } 
       System.out.println(dProjectArea.getName()); 
       dProjectArea=(IProjectArea) dProjectArea.getWorkingCopy();
   dProjectArea = (IProjectArea) service.getMutableCopy(dProjectArea);
  IDevelopmentLine dDevelopmentLine = (IDevelopmentLine) IDevelopmentLine.ITEM_TYPE.createItem();
  dDevelopmentLine.setEndDate(sDevelopmentLine.getEndDate());
  dDevelopmentLine.setId(sDevelopmentLine.getName());
  dDevelopmentLine.setName(sDevelopmentLine.getName());
  dDevelopmentLine.setProjectArea(dProjectArea);
  dDevelopmentLine.setStartDate(sDevelopmentLine.getStartDate());
  dProjectArea.addDevelopmentLine(dDevelopmentLine); 
  service.save(new IProcessItem[] {dProjectArea, dDevelopmentLine }, monitor); 
}

One answer



permanent link
masoom Abdullah (537) | answered May 03 '17, 7:56 a.m.

 I am getting the error in the last line of code.


service.save(new IProcessItem[] {dProjectArea, dDevelopmentLine }, monitor); 

Your answer


Register or to post your answer.