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

Section fails to compile when label control includes any rule

SA-18621

Summary



Not able to save a section with a label control that includes another rule in Pega 7.1.9.

Error Messages



2015-12-21 19:08:11,107 [ajp-bio-8009-exec-11] [TABTHREAD0] [rderPackage:01.01.01] (pcentric.RACacheAppCentricImpl) ERROR server1|111.1.111.xxx abc-  Failed to generate com.pegarules.generated.html_section.ra_stream_riskdashboardgriddata_123f3f02b58c5f636b0249f6182b8831 
com.pega.pegarules.pub.generator.FirstUseAssemblerException: Failed to compile generated Java com.pegarules.generated.html_section.ra_stream_riskdashboardgriddata_123f3f02b58c5f636b0249f6182b8831: ---------- 
1. ERROR in /com/pegarules/generated/html_section/ra_stream_riskdashboardgriddata_123f3f02b58c5f636b0249f6182b8831.java (at line 568) 
    String strFieldValue = "<pega:include name="ZoneRiskDropdownstyle" type="Rule-HTML-Fragment"/>"; 
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
Syntax error on tokens, delete these tokens 
---------- 
2. ERROR in /com/pegarules/generated/html_section/ra_stream_riskdashboardgriddata_123f3f02b58c5f636b0249f6182b8831.java (at line 568) 
    String strFieldValue = "<pega:include name="ZoneRiskDropdownstyle" type="Rule-HTML-Fragment"/>"; 
                                                                                               ^^^^ 
Syntax error on token ""/>"", delete this token 
---------- 
2 problems (2 errors) 
Compile failed.


Steps to Reproduce



Include a HTML fragment as below in last column of the Grid and try to save the Section.

<pega:include name="ZoneRiskDropdownstyle" type="Rule-HTML-Fragment"/>





Root Cause

Issue was caused by the double quotes in the Value field of the General tab of Label control.

Resolution

Using single quotes instead of the double quotes help resolve the issue:

<pega:include name='ZoneRiskDropdownstyle' type='Rule-HTML-Fragment'/>

Published January 31, 2016 - 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