csv lookup failed then unloaded when the last token is empty.

book

Article ID: 160106

calendar_today

Updated On:

Products

Data Loss Prevention Enforce

Issue/Introduction

Loading a csv attribute from System > Attribute > Custom Attribute > Reload Lookup Plug-ins is done. It is succeeded, an event "Loaded Custom Attribute Lookup Plug-ins" 2112 is displayed.
But when the lookup happens, it fails, an event "Custom attribute lookup failed" 2115 is displayed, then is unloaded.

Resolution

When loading a csv attribute, it doesn't check the all tokens. If the last token is empty, the lookup fails, then the attribute is unloaded. IncidentPersister.log logs like below:

XXXX/XX/XX XX:XX:XX (SEVERE) Thread: 14 [com.vontu.enforce.workflow.attributes.LookupRequest.doSingleLookup] Failed to instantiate lookup plug-in com.vontu.lookup.csv.CsvLookup. It was unloaded.
com.vontu.api.incident.attributes.AttributeLookupException: Failed to instantiate lookup plug-in com.vontu.lookup.csv.CsvLookup. It was unloaded.
:
:


Check the csv file and ensure the last token is not empty.
This error can also be caused by a white space at the end a configuration option in CsvLookup.properties.