Support Article
Error on accessing a drill down report with an embed function
SA-61852
Summary
Error occurs while accessing a drill down report with an embed function. However, the summary details display correctly.
Error Messages
An error occured on executing the query for the report definition - There was a problem getting a list: code: -440 SQLState: 42884 Message: No authorized routine named "DISTINCT" of type "FUNCTION" having compatible arguments was found.. SQLCODE=-440, SQLSTATE=42884, DRIVER=3.58.81
Steps to Reproduce
- Log in to the application
- Run the summary report which has a drill down report
- Click any cell or row in a column. The drill down results in an error
Root Cause
A defect in Pegasystems’ code or rules. Pega does not support the 'remove duplicate columns' functionality for summary reports.
The DISTINCT key word can only be used with SELECT and not in a query like below:
DISTINCT (CASE WHEN ( ( ({4} = 'RNR') OR ({4} = 'PRN') ) AND TIMESTAMPDIFF(16,CHAR(CURRENT TIMESTAMP - {3})) >=0 AND TIMESTAMPDIFF(16,CHAR(CURRENT TIMESTAMP - {3})) <= 5) OR ({4} = 'CLM' AND (
("PC0".InitialClaimAge)>=0 AND
("PC0".InitialClaimAge) <= 5)
) THEN {5} END)
Resolution
An enhancement request, FDBK-27487, has been created for consideration by Pega Product Management.
Published July 27, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.