Skip to main content
12-Amethyst
February 14, 2020
Question

Export Import Object Types

  • February 14, 2020
  • 2 replies
  • 1177 views

If you refer to article https://www.ptc.com/en/support/article/CS30168 it says to export your files and then import them in numerical order. I can get to step 4 successfully.

 

As soon as I try and import the file numbered _0 it fails with wt.util.WTException: Invalid Name: "local.rs.vsrs05.Regain" is incompatible with the domain context "null".

 

local.rs.vsrs05.Regain is the organization internal name. 

I gather file _0 contains the global attributes which in my case exist on the target machine. I would not expect it to error, I would expect it to do nothing in my case.

 

FIle _1 contains the attributes form the object type parent but it will load successfully, even though it also does nothing in my case.

 

File _2 does load successfully and does create the object correctly, even if I do not load file _0 and file _1.

 

Additionally, I need to specify the organization in the loadfromfile command otherwsie it bombs out.

 

Does anybody know how I cna load the first file, and load attributes that do not exist already?

 

I'm afraid it is another case of the documentation missing something critical to make this work. I personally have not found any documentation that is foolproof. There is ALWAYS something missing or something assumed.

I will however habve cases whw

2 replies

12-Amethyst
August 31, 2026

After 6 years I’ve tried to do this again. Still get the same errors.

If you use the CONT_PATH =\"/wt.inf.container.OrgContainer=<YourOrgName>\" it will bomb out on file 0.

File 1 and file 2 seemed to work, so from now on I’m goign to ignore file 0 which appears to be the golbal attributes, ensuring I have them the same on both dev and production and just run files 1 and 2 which take care of the object types.

HelesicPetr
22-Sapphire II
September 2, 2026

Hi ​@bmessenger 

Interesting, I’ve never ever had any troubles with exporting and importing process as you described. 

I use the load from file command without organization definition

windchill wt.load.LoadFromFile -d D:\export\WTPUSAGE_0.xml -u user -p pas
windchill wt.load.LoadFromFile -d D:\export\WTPUSAGE_1.xml -u user -p pas
windchill wt.load.LoadFromFile -d D:\export\WTPUSAGE_2.xml -u user -p pas

 

PS: you can not use the exported definition in different windchill version 

PetrH