SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 68815: Opening a watchlist alert displays the error "Expression 'undefined' in attribute 'options' used with the directive 'amlGrid' is non-assignable!"

DetailsHotfixAboutRate It

When a user clicks a watchlist alert in the SAS® Anti-Money Laundering user interface, the alert opens correctly. However, the following misleading error message is briefly shown and then disappears:

AML: [$compile:nonassign] Expression 'undefined' in attribute 'options' used with directive 'amlGrid' is non-assignable! https://errors.angularjs.org/1.8.0/$compile/nonassign?p0=undefined&p1=options&p2=amlGrid

The issue is specific to an alert that fulfills these conditions:

  • It is generated with a watchlist scenario (when the scenario_category_code is "WAT" in the fsk_scenario table, or the alert_category_cd='WAT' in the fsk_alert table).
  • The text in its Alert Threshold field (fsk_alert.actual_values_text) includes a colon in two specific places: just before the equal sign for Watch List ID and Watch List Name. Here is an example: Watch List ID := 1000000; Watch List Name := WCHK

The following image shows the colon placement and the error message: 

error message and colon placement

This issue is present in SAS Anti-Money Laundering 7.1 HF11 or later. So, you encounter it when the SAS Compliance Solutions 7.1 Hot Fix A5T014 or later is installed.

You can follow these steps to prevent this error message from being displayed:

  1. Edit the template-cache.js file (located in the SAS Configuration directory, in Web\WebAppServer\SASServer8_1\sas_webapps\sas.financialservices.aml.war\scripts). 
  2. Find this sequence: 
       on-data-load=vm.loadPossibleMatchesGrid on-change=vm.handleRowSelect>
  3. Replace it with the following:
       on-data-load=vm.loadPossibleMatchesGrid on-change=vm.handleRowSelect  options=vm.customerGridOptions>
  4. If the message persists, clear the browser cache.

Note that this file is overridden by a hot-fix installation. So, you need to repeat the modification when you update the SAS Anti-Money Laundering 7.1 installation with a newer hot fix.  

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.