CSV lookup plugin fails with "Failed to instantiate lookup plug-in com.vontu.lookup.csv.CsvLookup. It was unloaded"

book

Article ID: 160396

calendar_today

Updated On:

Products

Data Loss Prevention Enforce

Issue/Introduction

CSV lookup plug-in fails to load custom attributes.
    SEVERE [com.vontu.manager.incident.operation.LookupCustomAttributes] Failed to instantiate lookup plug-in com.vontu.lookup.csv.CsvLookup. It was unloaded.
    Cause:
    com.vontu.api.incident.attributes.AttributeLookupException: Failed to instantiate lookup plug-in com.vontu.lookup.csv.CsvLookup. It was unloaded.
    com.vontu.api.incident.attributes.AttributeLookupException: Failed to initialize Csv lookup.
    com.vontu.lookup.common.InitializationException
    java.lang.NullPointerException

If you look farther down in the stack trace, you will see the following:
    Caused by: java.lang.NullPointerException
        at com.vontu.lookup.csv.CachedDocManager.validaterow(CachedDocManager.java:171)
        at com.vontu.lookup.csv.CachedDocManager.populateCache(CachedDocManager.java:99)

Cause

The error is caused by a case mismatch in the CSV column headers vs the CsvLookup.properties file.

CSV File Headers:

    User|Email|Owner

CsvLookup.properties:

    attr.endpoint-user-name = user
    attr.sender-email = email
    attr.file-owner = owner

    keys = user:email:owner

Resolution

Verify the keys and attribute mappings in the CSVLookup.properties match the same, including case, as the column headers in the CSV file.

Applies To

Data Loss Prevention 11.5.1