cancel
Showing results for 
Search instead for 
Did you mean: 

input file format for ps_upload utility to create multiple item revision revisions

Builder
Builder

I am able to use ps_upload to create items. When i try to create multiple revisions for the same item, I get an error "found existing item id" and the revision does not get created. Below is the input file data for ps_upload.

 

#DELIMITER ~
#item~name~rev
045661~PSTEST1~A
045661~PSTEST1~B
045661~PSTEST1~C
045662~PSTEST2~B
045662~PSTEST2~C
045663~PSTEST3~B

Below is the commandline arguments passed to the utility

 

ps_upload -u=infodba -p=infodba -g=dba -c=Item -t=HCast -v -i=D:\Loader\psUpload_InputFile_Test.txt

Below is the console output.

read in structure: (id,name, level, seq_no,no_of_occs, qty_per_occ, uom, subs)
item_id=045661/<System Assigned RevID> PSTEST1, 0, HCast, 1, 0.000000, , Item
New item created item_id=045661

read in structure: (id,name, level, seq_no,no_of_occs, qty_per_occ, uom, subs)
item_id=045661/<System Assigned RevID> PSTEST1, 0, HCast, 1, 0.000000, , Item
Found existing item item_id=045661

read in structure: (id,name, level, seq_no,no_of_occs, qty_per_occ, uom, subs)
item_id=045661/<System Assigned RevID> PSTEST1, 0, HCast, 1, 0.000000, , Item
Found existing item item_id=045661

read in structure: (id,name, level, seq_no,no_of_occs, qty_per_occ, uom, subs)
item_id=045662/<System Assigned RevID> PSTEST2, 0, HCast, 1, 0.000000, , Item
New item created item_id=045662

read in structure: (id,name, level, seq_no,no_of_occs, qty_per_occ, uom, subs)
item_id=045662/<System Assigned RevID> PSTEST2, 0, HCast, 1, 0.000000, , Item
Found existing item item_id=045662

read in structure: (id,name, level, seq_no,no_of_occs, qty_per_occ, uom, subs)
item_id=045663/<System Assigned RevID> PSTEST3, 0, HCast, 1, 0.000000, , Item
New item created item_id=045663

I am creating single items with multiple revisions. Once the item and item revision created, i intend to use load dataset for all the revisions.

 

Any suggestions would be helpful.

Regards,
Santosh
4 REPLIES

Re: input file format for ps_upload utility to create multiple item revision revisions

Valued Contributor
Valued Contributor

What version of TC are you using? If you are on TC10.1.4+, then I highly suggest that you use TCXML to load your items. I can point you in the direction of the documentation if you are interested.

Jamie Griffis

Mercury PLM Services

Re: input file format for ps_upload utility to create multiple item revision revisions

Builder
Builder
Jamie,

I would like to know more abt TCXML. Will try this approach also.

I would also like to know what is the mistake in my ps_upload input file.

Regards,
Santosh

Re: input file format for ps_upload utility to create multiple item revision revisions

Valued Contributor
Valued Contributor

Re: input file format for ps_upload utility to create multiple item revision revisions

Builder
Builder
Jamie,

Thanks for the input and pointing me to right direction. Will surely look into this approach.
Regards,
Santosh