Sorting Case ID in numeric order causes DB errors
Currently Pega sorts CASE ID as Text, as in, after C-1, C-10, C-11... C-100, C-101 comes C-2.
User followed the article:http://https://pdn.pega.com/support-articles/inconsistency-sorting-functionality-work-objects-id
works fine for system with 4000 to 5000 cases. But when case number increase, user encounters database errors.
Log error noticed:
2017-11-08 22:30:40,875 [ WebContainer : 6] [TABTHREAD1] [ ] [#####:01.01.01] ( rd.queryexec.SqlQueryExecutor) ERROR #####|$$$.$$$.$$$.$$$ ##### - An error occured on executing the query for the report definition - There was a problem getting a list: code: 1013 SQLState: 72000 Message: ORA-01013: user requested cancel of current operation
DatabaseException caused by prior exception: java.sql.SQLTimeoutException: ORA-01013: user requested cancel of current operation
| SQL Code: 1013 | SQL State: 72000
Steps to Reproduce
1. Follow this article https://pdn.pega.com/support-articles/inconsistency-sorting-functionality-work-objects-id
2. Define the Function alias as in the above link.
3. Include around 30 to 40,000 cases in the system.
4. Sort on Case ID.
An issue in the custom application code or rules:
A property in the report was not exposed. Extracting the values from the blob was causing the query overhead.
Perform the following local-change:
Expose the affected property in the report.