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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

need some help with loadFromFile return values

ptc-3024623
1-Newbie

need some help with loadFromFile return values

I am at the command line running the following statement

C:\ptc\Windchill_9.1\Windchill>windchill wt.load.LoadFromFile -d test.xml -u wca
dmin -p windchill -CONT_PATH=/wt.inf.container.OrgContainer=MyOrg/wt.pdmlink.PDMLin
kProduct=TST

and all that seems to happen is it returns 7.

Is there a document that tells me what these return codes mean? (I've seen 3 before as well)

Thanks,

Daniel Fick

1 REPLY 1

Daniel

I suppose, you;re getting the following error:

java.lang.ArrayIndexOutOfBoundsException: 7

Use the following rules for the CONT_PATH argument:

1) Do not use '=' right after CONT_PATH, use space instead.

2) Put the string after CONT_PATH in quotes

I'm not sure the 2) is required (but I always use it so I don't care if I have spaces in a context name), but 1) is.

Example:

windchill wt.load.LoadFromFile -d LoadMyReport.xml -u wcadmin -p pass -CONT_PATH "/wt.inf.container.OrgContainer=MyOrg/wt.pdmlink.PDMLinkProduct=MyProduct"

Top Tags