SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 64678: The User Activity report in SAS® Environment Manager for SAS® Viya® displays the error "Cannot find the requested data source: AUDIT"

DetailsAboutRate It

When you use the User Activity report in SAS Environment Manager for SAS Viya, the report might not show any audit data. When this happens, an error similar to the following is displayed:

Cannot find the requested data source: AUDIT.

In addition, when you manually execute the genAudit program (which resides in /opt/sas/viya/home/bin/ev-genaudit), the execution might fail. When it does fail, the following error is generated:

There was a problem getting the name of the system cas library.

These errors occur when a file named credentials.json exists under SAS installer ID (sas) home directory ($HOME/.sas/credentials.json) and that file contains an expired token. The authentication step for the sas-admin command-line interface creates a token in a file that is stored in the user’s home directory. This token is valid for 12 hours only, by default. The EMI_OAUTH_TOKEN environment variable is ignored if credentials.json exists. So when the token expires, audit data cannot be loaded into CAS.

To resolve this issue, rename the credentials.json file in $HOME/.sas/ if the file exists under the SAS installer ID. Note that when the credentials.json file is 0 bytes, the token in that file is not used. As a result, audit data is loaded into CAS. 



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS ViyaLinux for x643.43.5Viya
* 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.