It's all about the answers!

Ask a question

ClearCase to RTC import fails


Pierre Friend (191915) | asked Nov 22 '12, 9:07 a.m.
The CC UCM import failed with the following trace.
javax.wvcm.WvcmException: 'Deliver' failed. Preconditions have not been met: The associated work item must specify for which iteration the work is planned.
at com.ibm.team.connector.scm.client.JzProvider.wrapException(JzProvider.java:2560)
at com.ibm.team.connector.scm.client.JzRepoWorkspace.doMerge(JzRepoWorkspace.java:1289)
at com.ibm.team.connector.scm.client.JzRepoWorkspace.doMerge(JzRepoWorkspace.java:980)
at com.ibm.rational.wvcm.ri.srvc.SrvcResource.doMerge(SrvcResource.java:1795)
at com.ibm.rational.wvcm.ri.impl.WvcmServiceConverter.doMerge(WvcmServiceConverter.java:1170)
at com.ibm.rational.wvcm.ri.impl.WorkspaceImpl.doMerge(WorkspaceImpl.java:162)
at com.ibm.rational.wvcm.interop.InteropStream.addCloneRoot(InteropStream.java:3475)
at com.ibm.rational.wvcm.interop.InteropStream.tryAddCloneRoots(InteropStream.java:3541)
at com.ibm.rational.wvcm.interop.InteropStream.addCloneRoots(InteropStream.java:3568)
at com.ibm.rational.wvcm.interop.InteropStream.importStream(InteropStream.java:3733)
at com.ibm.rational.wvcm.interop.InteropStream.doOperation(InteropStream.java:4623)
at com.ibm.team.connector.scm.operations.ConnectorOps.synchronizeStream(ConnectorOps.java:205)
at com.ibm.team.connector.scm.cli.AbstractCcConnectorSubCommand.synchronizeStream(AbstractCcConnectorSubCommand.java:212)
at com.ibm.team.connector.scm.cli.SyncSubcommand.synchronizeStream(SyncSubcommand.java:123)
at com.ibm.team.connector.scm.cli.SyncSubcommand.run(SyncSubcommand.java:76)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:651)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.doStart(SubcommandLauncher.java:398)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:175)
at com.ibm.team.filesystem.cli.core.internal.Application.start(Application.java:39)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: com.ibm.team.process.common.advice.TeamOperationCanceledException: 'Deliver' failed. Preconditions have not been met: The associated work item must specify for which iteration the work is planned.
at com.ibm.team.process.internal.common.advice.runtime.OperationAdviceManager.advise(OperationAdviceManager.java:355)
at com.ibm.team.process.internal.common.util.AbstractProcess.doAdvise(AbstractProcess.java:177)
at com.ibm.team.process.internal.client.ClientProcess.doAdvise(ClientProcess.java:127)
at com.ibm.team.process.internal.client.ClientProcess.adviseAndExecute(ClientProcess.java:110)
at com.ibm.team.scm.client.internal.process.ProcessUtils$ClientProcessProxy.adviseAndExecute(ProcessUtils.java:62)
at com.ibm.team.scm.common.process.RunnableAdvisableOperation.processExec(RunnableAdvisableOperation.java:189)
at com.ibm.team.scm.common.process.RunnableAdvisableOperation.processExec(RunnableAdvisableOperation.java:170)
at com.ibm.team.scm.client.internal.WorkspaceConnection.deliver(WorkspaceConnection.java:1978)
at com.ibm.team.scm.client.internal.WorkspaceConnection.deliver(WorkspaceConnection.java:1768)
at com.ibm.team.connector.scm.client.JzRepoWorkspace.doMerge(JzRepoWorkspace.java:1281)
 << File: Synchronization Stack Trace. 0 >>



Also the build log indicates the following snippet

Processed activity "Error while trying to transfer: CONTROLLABLE_RESOURCE|V:/DO_NOT_USE_xxxx_Integration_3/xxxx/New Text Document.txt
Reason Code: forbidden
Reason: 'Deliver' failed. Preconditions have not been met: The associated work item must specify for which iteration the work is planned." in 10 second(s)
Scanning for folders whose member count exceeds 1000
Processed activity "Added temporary synchronized folder "xxxx/xxxx/Operational" to avoid exceeding maximum member count" in 172 second(s)
Processed activity "Cannot transfer requested folder "CONTROLLABLE_RESOURCE|V:/DO_NOT_USE_xxxx_Integration_3/xxxx/xxxx" due to previous transfer failures" in 20 millisecond(s)

Synchronization blocked by error: Some files could not be synchronized

Many thanks,
Pierre

Accepted answer


permanent link
Geoffrey Clemm (30.1k33035) | answered Nov 22 '12, 3:01 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The key to understanding this error is that the CC Synchronizer obeys any process rules that you have in place for the Jazz stream being synchronized. 

In this case, the process configuration of the project/team area of the Jazz stream being synchronized apparently includes the process rule that a work item must be associated with any change set being delivered to a stream, and that the "Planned For" field of that work item must be set.

So the easiest/quickest way to fix this is to just turn off these process rules, and re-run the sync.

Going forward, you can either keep these process rules turned off for the Jazz stream, or you can create a work item that contains the necessary field values , and associate that work item with the synchronized stream as the "work item template" for that sync stream (see https://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/index.jsp?topic=%2Fcom.ibm.team.connector.scm.cc.doc%2Ftopics%2Ft_workitem_template.html).
Pierre Friend selected this answer as the correct answer

Your answer


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.