Resolve issue where the $TOTAL_PAGE system variable generating incorrect number of pages in EngageOne Server

Product Feature: Template Management


Customer was using under report file stab of Delivery channel : $TOTAL_PAGE system variable  for generating page count.

But TOTAL_PAGE was coming incorrect. Sometimes it was almost double.


One issue was customer had set this variable at TEMPLATE TAB.


UPDATED: November 14, 2017
There are others like DOCUMENT/PAGE/ etc. For correct number of pages, one should set the variable at document level to get correct output.

Variable at template level will always give you fixed count. That is the publication Page Count.

Second issue was there was extra space in TOTAL_PAGE variable which amounted to additonal pages being shown.

To replicate the issue, add any character along with TOTAL_PAGES variable. This will make the total page count doubled. 



We have removed the extra characters for this implementation and able to get the correct page count.