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

Exception occurs when answering a survey question



User sees an exception on the screen when answering a survey question.

Error Messages

Error on screen:
Exception occurred in Rule-HTML-Section Embed-PegaQ-Results-QuestionGroup.BuildQuestionPageStream

Error in log:
Caused by: Section 'BuildQuestionStream' execution error on page '' of class 'Embed-PegaQ-Results-Question'. : PRRuntimeError
at com.pegarules.generated.html_section.ra_stream_buildquestionstream_b13f5d216fdd4c936127635eadafad68.execute(
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(
at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuleRuntime.getSectionStream(
... 87 more
Caused by: PRRuntimeError
at com.pega.pegarules.session.internal.mgmt.Executable.doAction(
at com.pegarules.generated.html_section.ra_stream_buildquestionstream_b13f5d216fdd4c936127635eadafad68.execute(
... 89 more
Caused by: Failed to compile generated Java com.pegarules.generated.question.ra_action_troubleshooting_restart_2f35c53cd1ec9fb1b4199b9ed1a416cf: ----------
1. ERROR in com/pegarules/generated/question/ (at line 83)
pxResultsCbpp.putString("DisplayValue","Select "Cancel This Work"");
Syntax error, insert ")" to complete MethodInvocation

Steps to Reproduce

  1. Configure the question rule to use double quotes in the display value field
  2. Run the flow containing the question

Root Cause

The root cause of this problem is a defect in Pegasystems’ code/rules.  When the question rule has double quotes in the display value field, a NullPointerException occurs when the flow containing the question is run.


The issue is resolved by using single quotes instead of double quotes in the display value field of the question rule.  The issue with double quotes will be addressed in PegaSurvey 7.1.3.

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