Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I have some script that has been working for months...
String varName = <some text>;
String varDesc = <some text>;
<some code>
wt.change2.WTChangeRequest2 cr = wt.change2.WTChangeRequest2.newWTChangeRequest2();
cr.setName(varName);
cr.setDescription(varDesc);
<more code>
cr = (wt.change2.WTChangeRequest2) wt.fc.PersistenceHelper.manager.save(cr);
The result was a new Change Request with my preset field values for my business case. As of today, this code fails on the cr.setDescription() call with the following message:
Message: Resource bundle/Message key = wt.introspection.introspectionResource/21
I haven't found any reason or solution yet... but I am assuming someone has. Anyone have some ideas?
Solved! Go to Solution.
In Windchill 12.0.0.0 is still possible to use setDescription(String)
WTIntrospectionException exception is thrown if the string is longer then 4000 characters
and the error message 21 is:
It seams that string is null
PetrH
Between 11.1 and 12.0 (I belief) the description field changed from a normal text field to a WYSIWYG field. Perhaps you can't set the description field anymore with setDescription(String string) rather than using the function setLongDescription(HTMLText htmlText)?
In Windchill 12.0.0.0 is still possible to use setDescription(String)
WTIntrospectionException exception is thrown if the string is longer then 4000 characters
and the error message 21 is:
It seams that string is null
PetrH
It wasn't null, but it was empty and that caused it. Thanks for the message details.