Question
wt.inf.container.LoadContainer.createContainer : Can't create library context from org template
Hello
I’m trying to create a library context via NmLoader based on an Org library template:
<?xml version="1.0" ?>
<!DOCTYPE NmLoader SYSTEM "standardX20.dtd">
<NmLoader>
<csvContainer handler="wt.inf.container.LoadContainer.createContainer">
<csvcontainerClass>com.liebherr.aer.flow.windchill.WTLibraryStandardLibrary</csvcontainerClass>
<csvcontainerName>Foo111</csvcontainerName>
<csvparentContainerPath>/wt.inf.container.OrgContainer=AER</csvparentContainerPath>
<csvcontainerTemplateRef>Standard Parts Library Template</csvcontainerTemplateRef>
<csvbusinessNamespace/>
<csvsharingEnabled/>
<csvcreator>orgadministrator</csvcreator>
<csvowner>orgadministrator</csvowner>
<csvsubscriber/>
<csvconferencingURL/>
<csvdescription>TO_REPLACE_CONTEXT_DESCRIPTION</csvdescription>
<csvorganization>AER</csvorganization>
<csvcreatorSelector/>
</csvContainer>
</NmLoader>windchill wt.load.LoadFromFile -d "LibraryContext--Generic Library Template--LTS--Data.xml" -u orgadministrator -p orgadministrator -CONT_PATH /wt.inf.container.OrgContainer=AERThe loader can’t retreive the library template:
D:\wt\temp>windchill wt.load.LoadFromFile -d "LibraryContext--Generic Library Template--LTS--Data.xml" -u orgadministrator -p orgadministrator -CONT_PATH /wt.inf.container.OrgContainer=AER
createContainer: Context could not be created because the template with the name "Standard Parts Library Template" could not be found.
Loader method wt.inf.container.LoadContainer.createContainer reported a failure
No objects were imported due to the error.
Problem in export/import process.
Nested exception is: wt.util.WTException: Loader method wt.inf.container.LoadContainer.createContainer reported a failure Error loading data from file.
data file = <LibraryContext--Generic Library Template--LTS--Data.xml,D:\wt\temp\LibraryContext--Generic Library Template--LTS--Data.xml>
map file = <null,null>
token separator = <null,null>
method = <null,create>
user = <null>
Command line = <{User=, CONT_PATH=/wt.inf.container.OrgContainer=AER, Password=}>
Problem in export/import process.
Nested exception is: wt.util.WTException: Loader method wt.inf.container.LoadContainer.createContainer reported a failureEven if the account is able to create a library from the same template in the Windchill UI:

Any idea why it’s not working ?

