cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Unable to load Library Container template and Quality Container Template

RS_10128209
12-Amethyst

Unable to load Library Container template and Quality Container Template

@HelesicPetr 

Im loading using below template xml files

TAG-0 file kept at location <loadXmlFiles\>(which got after exporting as Template)

 

<NmLoader>
<!-- ****************************************************************** -->
<!--                    General Quality Document container Template    -->
<!-- ****************************************************************** -->
<csvCreateContainerTemplate handler="wt.inf.template.LoadContainerTemplate.createContainerTemplate">
    <csvname><?loc-begin key="QMS_CONTAINER_TEMPLATE_NAME" maxlen="150"?>Quality Container Template<?loc-end ?></csvname>
    <csvenabled>true</csvenabled>
    <csvxmlPath>QualityDocumentTemplate_Tag-0<?loc-begin key="LANG_FILE_EXT" pseudotrans="_ja"?><?loc-end ?>.xml</csvxmlPath>
    <csvcontainerClassName>com.ptc.QMS</csvcontainerClassName>
    <csvparentContainerPath>/</csvparentContainerPath>
    <csvdescription><?loc-begin key="QMS_CONTAINER_TEMPLATE_DESC"?> Quality Document container Template<?loc-end ?></csvdescription>
</csvCreateContainerTemplate>
</NmLoader>
 
 
For Library container same as above but
<csvcontainerClassName>wt.inf.library.WTLibrary</csvcontainerClassName>
 
 
 
ACCEPTED SOLUTION

Accepted Solutions
jlecoz
14-Alexandrite
(To:RS_10128209)

Sample load file set  I built to load library container templates (between NMLoader tag) for an older version of Windchill:

PRJ1_CONT_TEMP.xml (file used to load multiple container templates)

 

<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standardX05.dtd">
<NmLoader><csvCreateContainerTemplate handler="wt.inf.template.LoadContainerTemplate.createContainerTemplate" >
<csvname>Customerxx_General</csvname>
<csvenabled>true</csvenabled>
<csvxmlPath>..\..\setup\LoadFiles\TEMPLATES\PRJ1_ORG_DR_TEMPLATE.xml</csvxmlPath>
<csvcontainerClassName>wt.inf.container.OrgContainer</csvcontainerClassName>
<csvparentContainerPath>/</csvparentContainerPath>
<csvdescription>Customerxx organization template</csvdescription>

</csvCreateContainerTemplate>

</NmLoader>

 

 

PRJ1_ORG_DR_TEMPLATE.xml (used to load specific setup for my template library)

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE LibraryConfig SYSTEM "standardX10.dtd">
<LibraryConfig>
<projectMember><Role roleType="VIEWER4"></Role></projectMember>
<projectMember><Role roleType="DESIGNER"></Role></projectMember>
<projectMember><Role roleType="VIEWER2"></Role></projectMember>
<projectMember><Role roleType="EXTERNALDESIGNERS"></Role></projectMember>
<projectMember><Role roleType="VIEWER3"></Role></projectMember>
<projectMember><Role roleType="PRODUCT MANAGER"></Role></projectMember>
<projectMember><Role roleType="VIEWER1"></Role></projectMember>
</LibraryConfig>

 

load command

windchill wt.load.LoadFromFile -d PRJ1_CONT_TEMP.xml -u xxxx-p yyyyyy

 

Hope this helps

 

View solution in original post

7 REPLIES 7
jlecoz
14-Alexandrite
(To:RS_10128209)

Sample load file set  I built to load library container templates (between NMLoader tag) for an older version of Windchill:

PRJ1_CONT_TEMP.xml (file used to load multiple container templates)

 

<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standardX05.dtd">
<NmLoader><csvCreateContainerTemplate handler="wt.inf.template.LoadContainerTemplate.createContainerTemplate" >
<csvname>Customerxx_General</csvname>
<csvenabled>true</csvenabled>
<csvxmlPath>..\..\setup\LoadFiles\TEMPLATES\PRJ1_ORG_DR_TEMPLATE.xml</csvxmlPath>
<csvcontainerClassName>wt.inf.container.OrgContainer</csvcontainerClassName>
<csvparentContainerPath>/</csvparentContainerPath>
<csvdescription>Customerxx organization template</csvdescription>

</csvCreateContainerTemplate>

</NmLoader>

 

 

PRJ1_ORG_DR_TEMPLATE.xml (used to load specific setup for my template library)

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE LibraryConfig SYSTEM "standardX10.dtd">
<LibraryConfig>
<projectMember><Role roleType="VIEWER4"></Role></projectMember>
<projectMember><Role roleType="DESIGNER"></Role></projectMember>
<projectMember><Role roleType="VIEWER2"></Role></projectMember>
<projectMember><Role roleType="EXTERNALDESIGNERS"></Role></projectMember>
<projectMember><Role roleType="VIEWER3"></Role></projectMember>
<projectMember><Role roleType="PRODUCT MANAGER"></Role></projectMember>
<projectMember><Role roleType="VIEWER1"></Role></projectMember>
</LibraryConfig>

 

load command

windchill wt.load.LoadFromFile -d PRJ1_CONT_TEMP.xml -u xxxx-p yyyyyy

 

Hope this helps

 

RS_10128209
12-Amethyst
(To:jlecoz)

Thanks @jlecoz  Its helpful

Now Im trying to Load Quality containers I have loaded a template on org level named as "Quality Container Template"

but its saying "Context could not be created because the template with the name "Quality Container Template" could not be found."

while loading Quality containers

 

I think there is an issue with loading subtypes on Org-Level. Not sure, but if you can upload the template to site, it could work.

@BjoernRueegg thanks for suggestion

 

But still its not working I checked with site level also

@jlecoz and @Rocket_Max 

Please let me know if any updates for loading QMS containers

jlecoz
14-Alexandrite
(To:RS_10128209)

The samples I provided are for templates.

 

You still have to create the XML file to create the product using the loaded templates, have you done it?

 

Then you load it at the same level than the template.

Announcements


Top Tags