Data discrepancy between Manual and Scheduled reports
A data discrepancy exists between a scheduled report and the manually downloaded version of the same report, which shows worker productivity.
The number of tasks completed by each worker is greater in the manually downloaded report obtained at 10 PM AEST, compared to the scheduled report received at 11 PM AEST.
Steps to Reproduce
- Run the report manually.
- Run the same report using Schedule Task.
Notice the different results in each report.
The earlier report, run manually after hours, contains more information than the same after-hours report run as a scheduled report an hour later.
An issue in the custom application code or rules
The Agents of the scheduled report were not using the same required Locale as that of the operators who were running the report manually.
Perform the following local-change:
- Copy (SaveAs) the rule UpdateLocaleSettings, which applies to the class Pega-Scheduled-Task-Reporting in the ruleset.
- Check out pyExecuteTask of class Pega-Scheduled-Task-Reporting.
- Insert a new step with the When condition Call the activity UpdateLocalSettings pxRequestor and specify the Method Parameters
useLocale = "en_AU"
useTimeZone = "Australia/Melbourne"