Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Correspondence rule automatically adds <table> tag in source

SA-9941

Summary



If you save and refresh or reopen a correspondence rule, the system automatically adds a <table> tag into the source code.

Error Messages



Not Applicable

Steps to Reproduce



1. Create an email correspondence rule.
2. Open the rule.
3. Save the rule.
4. Refresh the rule.

5. Check the source by clicking on the source button and observe that the system automatically adds a <table> tag into the source code.

Root Cause



On every save of a correspondence rule the activity "Validate" of class "Rule-Obj-Corr" in the PegaMKT-Engine:07-12-01 ruleset is called. The tag is added by step 13 of that activity. Here is the code of that step:

String sourceStream = myStepPage.getString("pySourceStream");
if(!sourceStream.toLowerCase().contains("<table id=wordmerge")){
sourceStream = sourceStream + "<table id=wordmerge><tr><td style='padding:0 0 0 0;border:none;'></td></tr></table>";
}
myStepPage.putString("pySourceStream", sourceStream);


Resolution



The issue is corrected by installing HFix-21916.

Published June 12, 2015 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us