Support Article
IllegalArgumentException when attachment file name contains &
SA-11348
Summary
IllegalArgumentException occurs when the attachment file name contains a special character (&). This occurs when using the Select Files option to attach the file.
Error Messages
** Java Exception: java.lang.IllegalArgumentException: Trying to set a parameter with invalid name " SMA landing pages - Copy.docx;"
Steps to Reproduce
- Log in to Pega 7.1.8.
- Open any Work Object.
- Click the Add button to attach a file.
- Click the Select File button instead of the Drag and Drop option.
- Select a file with the special character '&' (ampersand) in the file name.
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Apply HFix-28049.
Published March 29, 2018 - 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.