Skip to main content
12-Amethyst
February 7, 2024
Solved

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

  • February 7, 2024
  • 2 replies
  • 3567 views

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

 

Best answer by egun

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

 

2 replies

HelesicPetr
22-Sapphire II
22-Sapphire II
February 7, 2024

Hi @selim_akcelik 

What about your source input xls file? 

What type are the columns ? 

PetrH

12-Amethyst
February 7, 2024

Hello @HelesicPetr 

selim_akcelik_0-1707308846605.png

Is this the answer to your question?

 

HelesicPetr
22-Sapphire II
22-Sapphire II
February 7, 2024

I'm not sure what is Metin

HelesicPetr_0-1707309010921.png

 

But I would try to use String

 

PetrH

egun7-BedrockAnswer
7-Bedrock
March 15, 2024

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

 

12-Amethyst
March 15, 2024

Hİ @egun 

 

Thank you for the successful solution.