RTC scm load command error "Unmatched workspace/stream XXXXX"
![]()
Vijay Reddy Gaddam (56●30●41)
| asked Apr 17 '15, 11:44 a.m.
edited Apr 28 '15, 2:36 a.m. by Ralph Schoon (63.3k●3●36●46)
Hi,
I have the following load rule file for loading the content of component for file specific. test.loadrule <?xml version="1.0" encoding="UTF-8"?> <scm:sourceControlLoadRule xmlns:scm="http://com.ibm.team.scm" version="1"> <itemLoadRule> <component itemId="_Bhoc8DgZEeSKi4jI8QqalA"/> <item repositoryPath="/admisanityxps/properties/config/db.properties"/> <sandboxRelativePath includeRepositoryPath="true"/> </itemLoadRule> <itemLoadRule> <component itemId="_Bhoc8DgZEeSKi4jI8QqalA"/> <item repositoryPath="/admisanityxps/JavaSource/colruyt/admisanityxps/AdmiSanityXps.java"/> <sandboxRelativePath includeRepositoryPath="true"/> </itemLoadRule> <itemLoadRule> <component itemId="_Bhoc8DgZEeSKi4jI8QqalA"/> <item repositoryPath="/admisanityxps/JavaSource/colruyt/admisanityxps/VersionToolUtilityService.java"/> <sandboxRelativePath includeRepositoryPath="true"/> </itemLoadRule> </scm:sourceControlLoadRule>When I try to load the repository workspace using the above load rule from shell client then I was able to load the content of the load rule file. Similarly When I try to load the content of the repository workspace using scm commands I get the following error: Unmatched workspace/stream "SDP Testing Sample Stream Workspace" SCM command: scm load -L /test.loadrule "SDP Testing Sample Stream Workspace" -u xxxx -P Xxxx -r https://rtc/ccm.
I also tried to load the same load rule using the API.
When I use the Java API i get the following error:
com.ibm.team.filesystem.client.FileSystemException: Error parsing load rule: cvc-elt.1: Cannot find the declaration of element 'scm:sourceControlLoadRule'.
at com.ibm.team.filesystem.client.internal.load.LoadRuleFactory.getLoadRule(LoadRuleFactory.java:151).
Snippet used for loading the files from RTC using load rule
File loadRuleFile = new File("C:\\Temp\\test.loadrule"); System.out.println("LoadRule File: " + loadRuleFile.getCanonicalPath());
Version of RTC: 4.0.4
Thanks and Regards,
Vijay Reddy |
One answer
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.
Comments
Same issue was reported: