Skip to main content
Oct 9, 2020 12:55 PM UTC
Question

Using special character like & in resourceInfo file

Hi,

Windchill 11.2 may not be recognizing internal value of lifecycle state when internal key is using special character like '&'. Here is the entry from custom StateRB info file.

PUBLISHED_R&D.value=Published R&D

 

Set State operation throws an error.

wt.util.WTInvalidParameterException: No EnumeratedType exists with "wt.lifecycle.State.PUBLISHED_R&D" as its internal value. Nested exception is: java.lang.reflect.InvocationTargetException

 

Trying to figure out whether usage of special character is not supported anymore in rb info file? 

3 replies

Oct 9, 2020 1:04 PM UTC

Why not use an internal value without special character ?

PUBLISHED_RD.value=Published R&D

 

This won't impact the users.

Oct 9, 2020 1:51 PM UTC

Thanks. This state value is been used for several years. First time seeing hurdle. 

 

Yes. We are looking an option to replace the internal key or new value. Just want to make sure special character is our problem or something else.

Oct 9, 2020 2:21 PM UTC

You can try to escape the character

PUBLISHED_R\&D.value=Published R&D

 

or substitute with its unicode "\u0026"

PUBLISHED_R\u0026D.value=Published R&D

 

Just ideas, I didn't try.