SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 65750: You encounter a DataAccessException error when you have more than 1,000 queues in SAS® Anti-Money Laundering

DetailsHotfixAboutRate It

When you create more than 1,000 queues in SAS Anti-Money Laundering and you are using an Oracle database, you might encounter issues with the user interface and alert generation process. You can see an error message similar to the one below in the SAS Compliance Solution log:

ERROR 2019-09-10 09:30:30,552 [tomcat-http--38] - DataAccessException error. org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT * FROM (SELECT PAGED_RESULTS.*, ROWNUM rnum FROM (select * from (select ae.*, trunc(CAST(CURRENT_DATE as DATE) - CAST(ae.CREATED_TIMESTAMP as DATE)) + ae.AGE_OLDEST_ALERT as CURRENT_AGE_OLDEST_ALERT, eq.QUEUE_CODE, eq.OWNER_USERID, case when ALERTS_CNT > ? OR AGGREGATE_AMT > ? then 3 when ALERTS_CNT > ? OR AGGREGATE_AMT > ? then 2 when ALERTS_CNT > ? OR AGGREGATE_AMT > ? then 1 else 0 end as priority from fsk_alerted_entity ae left join FSK_ENTITY_QUEUE eq ON ae.alerted_entity_level_code = eq.alerted_entity_level_code and ae.alerted_entity_number = eq.alerted_entity_number) A WHERE alerts_cnt > 0 AND NVL(ALERTS_CNT,0) > ? AND (QUEUE_CODE IS NULL OR QUEUE_CODE='' OR QUEUE_CODE IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?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,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ,?,?,?,?,?,?,?,?,?)) ORDER BY PRIORITY DESC, ALERTED_ENTITY_NUMBER DESC) PAGED_RESULTS WHERE ROWNUM <= ?) WHERE rnum >= ?]; nested exception is java.sql.SQLSyntaxErrorException: ORA-01795: maximum number of expressions in a list is 1000 

This problem occurs because an Oracle query has a built-in limit of 1,000 items for an IN clause.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Anti-Money LaunderingMicrosoft® Windows® for x647.1
64-bit Enabled AIX7.1
64-bit Enabled Solaris7.1
Linux for x647.1
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.