Support Article

Difference in the result is seen when used ComparePages API



If the comments text area field contains a new line character string in Peer review of any case,when no fields are updated are review button is clicked,it displays the dialog showing there is a difference in the content of text area field,which is not actually attempted.This is not happening if the field has content without a new line character string.

Error Messages

Not Applicable

Steps to Reproduce

  1. Create two clipboard pages say pgResult and currentPage.
  2. Copy the data of the pyWorkPage in a tempPage using Pega-copy.
  3. Make sure that one of the property is having a new line character,by pressing the Enter Key("/n").
  4. Now using the comparePages API compare this two pages. 
  5. A diiference it seen inthe two Pages even though the values are same (when seen in the tracer.)

Root Cause

ComparePages Pega API is not able to differentiate between carriage return and new line (i.e between "\r" and "\r\n").


Apply HFIx-30453.
The ComparePages API has been modified to treat the two values as same.

Published November 15, 2016 - Updated November 20, 2016

Have a question? Get answers now.

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