It's all about the answers!

Ask a question

load rule exception occur


Tifa Tan (1835) | asked Sep 04 '14, 5:47 a.m.
edited Sep 04 '14, 5:55 a.m. by Ralph Schoon (63.2k33646)

Hi, I used ILoadRule2 rule = ILoadRuleFactory.loadRuleFactory.getLoadRule(workspaceConnection, xmlReader, monitor); to load the projects,

loadruls file such as:

<?xml version="1.0" encoding="UTF-8"?>
<scm:SourceControlLoadRule xmlns:scm="http://com.ibm.team.scm"  eclipseProjectOptions="import" version="1">
    <itemLoadRule alternateName="FSRoot">
        <component name="FileSystem Component"/>
        <item repositoryPath="/"/>
    </itemLoadRule>
</scm:SourceControlLoadRule>

but when I run the load program, an exception throw:

com.ibm.team.filesystem.client.FileSystemException: Error parsing load rule: cvc-elt.1: Cannot find the declaration of element 'scm:SourceControlLoadRule'. May I know what made this Exception occur?


Comments
Vijay Reddy Gaddam commented Apr 20 '15, 2:12 a.m.

Hi,

I'm also facing the same Issue. Has the issue been resolved. If so could you please let me know the solution

One answer



permanent link
Surya Tripathi (65017) | answered Apr 20 '15, 7:50 p.m.
edited Apr 20 '15, 8:01 p.m.
Your load rules do not specify what to load - the root of the component or a folder in the component. try one of these -
(To load the root of the component)
<itemloadrule alternateName="FSRoot">
        <component name="FileSystem Component"/>
        <item itemId="uuid of the component" itemType="folder"/>
</itemloadrule>

(To load a path in the component. This will not remember the repository path)
<itemloadrule alternateName="FSRoot">
        <component name="FileSystem Component"/>
        <item repositoryPath="/path1/path2/filename" />
</itemloadrule>

(To load a path in the component but also remember the repository path)
<itemloadrule alternateName="FSRoot">
        <component name="FileSystem Component"/>
        <item repositoryPath="/path1/path2/filename" />
        < sandboxRelativePath includeRepositoryPath="true"/>
</itemloadrule>


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.