Skip to main content
12-Amethyst
Feb 7, 2024 11:45 AM UTC
Solved

java.lang.string cannot be cast to java.lang.Integer

Hello, when loading New Document, it gives the error shown in the picture.
I changed the attribute of the document. I made All Attribute data types string. I keep getting the same error. Would you support?
The template is in excel format. All attributes have been inserted..

selim_akcelik_2-1707306286365.png

selim_akcelik_1-1707305932762.png

 

Thanks 

Best Regards

 

Selim AKCELIK

 

egunAnswer
7-Bedrock
Mar 15, 2024 1:12 PM UTC

Hello Selim,

 

This might be happening due to post-upgrade issues.

try reload the doc preferences on windchill shell by using the command below:

 

windchill wt.load.LoadFromFile -d <windchill_path>\Windchill\loadFiles\preference.documents.xml

 

11 replies

HelesicPetr
22-Sapphire II
Feb 7, 2024 12:00 PM UTC

Hi @selim_akcelik 

What about your source input xls file? 

What type are the columns ? 

PetrH

Translate
12-Amethyst
Feb 7, 2024 12:27 PM UTC

Hello @HelesicPetr 

selim_akcelik_0-1707308846605.png

Is this the answer to your question?

 

Translate
HelesicPetr
22-Sapphire II
Feb 7, 2024 12:30 PM UTC

I'm not sure what is Metin

HelesicPetr_0-1707309010921.png

 

But I would try to use String

 

PetrH

Translate
egun7-BedrockAnswer
7-Bedrock
Mar 15, 2024 1:12 PM UTC

Hello Selim,

 

This might be happening due to post-upgrade issues.

try reload the doc preferences on windchill shell by using the command below:

 

windchill wt.load.LoadFromFile -d <windchill_path>\Windchill\loadFiles\preference.documents.xml

 

Translate
12-Amethyst
Mar 15, 2024 2:52 PM UTC

Hİ @egun 

 

Thank you for the successful solution.

 

Translate