cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

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

selim_akcelik
10-Marble

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

 

View solution in original post

11 REPLIES 11

Hi @selim_akcelik 

What about your source input xls file? 

What type are the columns ? 

PetrH

Hello @HelesicPetr 

selim_akcelik_0-1707308846605.png

Is this the answer to your question?

 

I'm not sure what is Metin

HelesicPetr_0-1707309010921.png

 

But I would try to use String

 

PetrH

Hello @HelesicPetr 

 

Metin means text

There is no string or anything like that.

Do you have any other solution

selim_akcelik_0-1707476614530.png

 

So text is string.

I think it might be so.

I'm still getting the same error.

In Excel, something that looks like an integer can be stored in String (text) format or it can be stored in the default integer format.

 

I think that Windchill needs to receive integer format in this situation. Just a guess.

 

Just temporarily, please select 'English' localization in Windchill and Excel so we can answer the question better.

Screenshot_2.png

I don't know what's best

As Petr says, text is the same as string.  Your Windchill import is probably expecting string, and your Excel integers probably need to be in a string format before import to Windchill.

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

 

Hİ @egun 

 

Thank you for the successful solution.

 

Top Tags