[ https://issues.apache.org/jira/browse/NIFI-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Villard resolved NIFI-5159. ---------------------------------- Resolution: Fixed Thanks for reporting this [~daniel.arnaiz]. This issue has already been fixed with NIFI-4149. You can build the lookup services NAR from master if you need the fix. > SimpleCsvFileLookupService doesn't resolve 'variables' properly > --------------------------------------------------------------- > > Key: NIFI-5159 > URL: https://issues.apache.org/jira/browse/NIFI-5159 > Project: Apache NiFi > Issue Type: Bug > Components: Extensions > Affects Versions: 1.6.0 > Reporter: Daniel Arnaiz > Assignee: Pierre Villard > Priority: Major > Fix For: 1.7.0 > > > - Create a new process Group. > - Add "Variables" from UI to the process group scope: > csv=d:\tmp\mycsv.csv > - Create a controller service SimpleCsvFileLookupService in Group scope. > - Configure attribute "CSV File" as ${csv} > - Enable the controller service, so got an error: > 2018-05-07 08:56:11,160 DEBUG [Timer-Driven Process Thread-10] > o.a.n.lookup.SimpleCsvFileLookupService > SimpleCsvFileLookupService[id=c7639ef7-9932-3ae8-d4df-b0eaf5dce379] Loading > lookup table from file: ${csv} > java.io.FileNotFoundException: ${csv} (El sistema no puede encontrar el > archivo especificado) > at java.io.FileInputStream.open0(Native Method) > at java.io.FileInputStream.open(FileInputStream.java:195) > at java.io.FileInputStream.<init>(FileInputStream.java:138) > at java.io.FileInputStream.<init>(FileInputStream.java:93) > at java.io.FileReader.<init>(FileReader.java:58) > at > org.apache.nifi.lookup.SimpleCsvFileLookupService.loadCache(SimpleCsvFileLookupService.java:139) > at > org.apache.nifi.lookup.SimpleCsvFileLookupService.onEnabled(SimpleCsvFileLookupService.java:190) -- This message was sent by Atlassian JIRA (v7.6.3#76005)