Support Article
Malformed URL in Case Reminder Email
SA-7930
Summary
Developers notice when using a correspondence rule to send a URL, that the URL generated lacks spaces, "%20", or '+' characters between the class and handle ID,.
Error Messages
Work Object Not Found
The work object was not found in the current application.
Check the ID and try again.
Steps to Reproduce
1. Create an activity with a Java step which calls" com.pegarules.generated.pega_rules_decision.EvaluateExpression(tools,myStepPage,strMessage,arMessage)" on an existing Message generated via a Correspondence rule.
2. The resulting URL in the message has the spaces, "%20", or '+' characters removed
Root Cause
The root cause of this problem is a defect in customer application code/rules. The message generated via the correspondence rule should not be processed by the EvaluateExpression() utility.
Resolution
This issue is resolved through the following local change:
Prior to calling the EvaluateExpression() utility check if the CorrName parameter is null.
if(tools.getParamValue("CorrName") == "")
Published January 31, 2016 - 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.