Support Article
IllegalArgumentException occurs on entering any value with &
SA-69673
Summary
IllegalArgumentException occurs on entering any value with '&'.
For example, A & B
Error Messages
Error: Caught exception: java.lang.IllegalArgumentException: Trying to set a parameter with invalid name " B"
Steps to Reproduce
- Create an autocomplete field.
- Configure the autocomplete with onChange activity along with Refresh-ThisSection.
- At runtime, select a value from autocomplete that has &.
Root Cause
A defect in Pegasystems’ code or rules.
While parameter values are generated in the actions attribute, on control in the GenerateClientEventParams Rule Utility Function (RUF), the & is replaced with ~!. This is replaced back in ReloadSection activity.
Resolution
- Apply HFix-48797.
- Click the Generate library on GenerateClientEventParams function.
- Resave the section with the issue.
Published January 5, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.