Support Article
Section fails to compile when label control includes any rule
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
<pega:include name='ZoneRiskDropdownstyle' type='Rule-HTML-Fragment'/>
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.