It's all about the answers!

Ask a question

Export projectArea ProcessTemplate using API


ast java (4512049) | asked Jan 17 '17, 7:57 a.m.

Hi Team,

I am trying to export projectArea template using below Java API.
IContent content =
        ((IProcessInternalClientService) this.teamRepo.getClientLibrary(IProcessInternalClientService.class))
            .createProcessDefinitionExportZip(templateId, new SubProgressMonitor(subProgressMonitor, 200));

But its giving below error
java.lang.IllegalArgumentException: invalid UUID
    at com.ibm.team.repository.common.UUID.valueOf(UUID.java:108)
    at com.ibm.team.process.internal.service.ProcessService.exportProcessDefinitionWithParticipants(ProcessService.java:969)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
    at java.lang.reflect.Method.invoke(Method.java:620)

If in place of template , if i pass the processDefination instance, then its working fine.

Another issue i am facing is : i am not able to export updated project area template. that means, for example if i add some of the new attributes to the project area and then try to export. new contents are not exported.

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.