Skip to main content
12-Amethyst
Mar 11, 2022 10:09 AM UTC
Question

How to convert CSV file to XML to import a classification structure in windchill 12

To create a classification structure by importing a csv template.

4 replies

HelesicPetr
22-Sapphire II
Mar 11, 2022 12:17 PM UTC

Hello @RS_10128209 

There is a windchill shell tool to convert csv to xml (wt.load.util.CSV2XML)

 

first you should prepare CSV file based on a csvmapfile.txt (WT_HOME\loadFiles\csvmapfile.txt)

there are method you need. 

save csv to D:\IMPORTCSV

 

then use windchill shell command 

windchill wt.load.util.CSV2XML -root D:\IMPORTCSV

 XML file will be generated and this file you can load to Windchill by 

windchill wt.load.LoadFromFile -u AdminUser -p AdminPassword -d D:\IMPORTCSV/sourceFile.xml -CONT_PATH \"/ORG_NAME/wt.pdmlink.PDMLinkProduct=PRODUCTNAME\"

 Hope this can help

 

PetrH

Translate
12-Amethyst
Mar 16, 2022 8:51 AM UTC

Im enable to convert CSV to XML file its showing me the error related to header.

Translate
10-Marble
May 16, 2025 8:50 PM UTC

Curious if you got this working?  In my searches I'm seeing mixed information on if CSV2XML works for Classification structures.

Translate
18-Opal
May 16, 2025 9:03 PM UTC

It’s all in the help.

The process is very simple.

Did you not read the manual?

Translate