6.311 rsPageNumberInScopedAggregates
rsPageNumberInScopedAggregates is a critical error that will occur when the following conditions are true:
An expression within a PageSection or PageHeaderFooter contains an aggregate function that has its Scope parameter set.
That expression contains the "PageNumber" or "TotalPages" variable from the Globals global collection.