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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Load parts using the wt.load.loadFromFile

amedina
1-Newbie

Load parts using the wt.load.loadFromFile

So I wanted to try this XML load tool and I keep getting the following
error:



java.lang.ArrayIndexOutOfBoundsException: 9

at wt.load.LoadFromFile.main(LoadFromFile.java:159)

Error reading command line arguments.





Here is the command I use in general, just add the user and password of
the user:

windchill wt.load.LoadFromFile -d load_file.xml -u user -p pasword
-CONT_PATH/wt.inf.container.OrgContainer=ISE/wt.pdmlink.PDMLinkProduct=H
ybridS



To try this out, I wanted to see the create part sample. I don't know
what the organization name or ID is at that or what to put on the
CSVUSER and several other empty fields. I mean the oracle tables give
you a name like say ISE, but there is also the IDA2A2 or some other
number that might be the thing this XML needs. They don't say on the
guide. So I thought just going with the org name would work. Can someone
help me out on this?



Thanks,



Alfonso







<nmloader>

<csvproduct handler="wt.part.LoadPart.beginCreateWTPart">

<csvuser></csvuser>

<csvpartname>LoadedAssm-1</csvpartname>

<csvpartnumber>LoadedAssm-1</csvpartnumber>

<csvtype>separable</csvtype>

<csvsource>make</csvsource>

<csvfolder>/Default</csvfolder>

<csvlifecycle>Default</csvlifecycle>

<csvview></csvview>

<csvteamtemplate>Default</csvteamtemplate>

<csvlifecyclestate>INWORK</csvlifecyclestate>

<csvtypedef></csvtypedef>

<csvversion></csvversion>

<csviteration></csviteration>

<csvparentcontainerpath></csvparentcontainerpath>

<csvorganizationname>ISE</csvorganizationname>

<csvorganizationid></csvorganizationid>

</csvproduct>

<csvendwtpart handler="wt.part.LoadPart.endCreateWTPart">

<csvpublishflag></csvpublishflag>

<csvparentcontainerpath></csvparentcontainerpath>

</csvendwtpart>

</nmloader>



Alfonso Medina O.
Mechanical Engineer

2 REPLIES 2

Alfonso,

You need a space after -CONT_PATH. Also, if you're CONT_PATH string
contains any spaces, you need to wrap it in quotes.

Best Regards,
Bill Palm
Manager - RAPiDS Support Center
ProductSpace Solutions, Inc.


Alfonso,

If you want to load into the "Hybrid Systems" Product, use the following...

-CONT_PATH \"/wt.inf.container.OrgContainer=ISECORP/wt.pdmlink.PDMLinkProduct=Hybrid
Systems\"

You need the quotes since the product has spaces and the quotes are escaped
with a \ in this example. Also, your organization name is ISECORP.

If you want to load into a Library, use wt.inf.library.WTLibrary= instead of
wt.pdmlink.PDMLinkProduct=.

Best Regards,
Bill Palm
Manager - RAPiDS Support Center
ProductSpace Solutions, Inc.


Top Tags