Skip to content

Invalid sort field index number passed

This error can be generated when calling psRecordSortField or peRecordSortOrder with an invalid sort field index. The number must be between 0 and the count of the sort fields for the report.

Sort fields are typically added to the report by calling AddRecordSortField, but existing sort fields can also be changed.

This error can occur when the report definition is modified by reducing the number of report sort fields while the integration code remains unadjusted.