Skip to main content
10-Marble
November 21, 2023
Question

Error when loading global enumerations using load from file

  • November 21, 2023
  • 2 replies
  • 3823 views

Hello,

 

I am trying to load global enumerations from windchill 11.1 to windchill 12.0 using Load from file command. However, I am facing an an uniqueness exception in doing so. The windchill version for the target system is 12.0.2.15 with CPS15 installed. I have attached the log file containing the error. Kindly provide any suggestions on how to resolve this,

 

Command used:-

windchill --javaargs="-Dwt.auth.trustedAuth.username=wcadmin" wt.load.LoadFromFile -d /appl/ptc/builds/SCF_Lufkin_Build/loadFiles/sic/GlobalEnumerations/Global_Enum_All_0.xml

 

Thanks,

Ramsha 

 

2 replies

HelesicPetr
22-Sapphire II
22-Sapphire II
November 21, 2023

Hi @RK_10805837 

Your source file contains some global enum values that are not unique as it is needed in the database.

You need to find what value is not unique.

PetrH

 

 

10-Marble
November 22, 2023

Hi @HelesicPetr ,

 

A colleague of mine has used the same source file to load into his local windchill and it seems to be working fine for him. I guess this is a database issue not related to the loader file. Could you please provide any hints on how to resolve that?

 

Thanks again,

Ramsha

HelesicPetr
22-Sapphire II
22-Sapphire II
November 22, 2023

Hi @RK_10805837 

It is possible. 

The point is that the system can already contains some values that has to be unique and yours are just duplicated. 

One record is not unique and you need to find what it is.

 

Go to database and check the table LWCLocalizablePropertyValue

select * from wcuser.LWCLocalizablePropertyValue

compare the values to your file

 

add a where condition

select * from wcuser.LWCLocalizablePropertyValue
where idA2A2='5422'

 

also you can divide your file and try to load one enumeration by one , and thanks that you can find what is wrong. 

 

PetrH

PS> if you can share a source file, it can be useful.

Fadel
23-Emerald I
November 22, 2023

Windchill complains about below entry in DB

LWCLocalizablePropertyValue:5422

Fadel_0-1700634916436.png

you can import the attached qml on the target system and run it with the given id 5422, it should then give better sight in the problematic entry in DB 

Fadel_2-1700635712018.png

 

Fadel_4-1700635796921.png

 

Buiꓘa
10-Marble
November 22, 2023

Hi @Fadel ,

 

Thankyou for your response. I tried importing your attached qml on the target system but I am facing the below error:

RK_10805837_0-1700637338373.png

Is there something wrong that I am doing?

Fadel
23-Emerald I
November 22, 2023

import as QMl not as template 

Buiꓘa