Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: jpstorythe variable ("
MyFieldName" ) I put in the FieldNames parameter is read by Delimted Data node as a string rather then a list.
Here's the graph, you need to mannually create a Sample.csv file with data like this:
"Report Date" 2016-10-06 "Report Run Date" 2016-10-07
Name Gender Age ID
Name 1 M 25 Empoyee 1
Name 2 F 55 Empoyee 2
Name 3 M 47 Empoyee 3
Name 4 F 35 Empoyee 4
node:Delimited_File_3
bretype:core::Delimited File
editor:sortkey=588112691fd225bf_2
input:58811269563f55af/=Lookup_3.40fd2c7445835585
output:@41e6c6cd11e613c6/=
prop:FieldDelimiter=,
prop:FieldNames=MyFieldName
prop:FilenameExpr=<<EOX
'FileName'
EOX
prop:FilenameOutputField=SourceFile
prop:RecordDelimiter=\n
editor:XY=570,870
end:Delimited_File_3
node:Lookup_3
bretype:core::Lookup
editor:sortkey=58810f02240075b5_2
input:@40fd2c746abc6dc7/=Directory_List_3.40fd2c747c2b1c0a
editor:bend=0=110|820
editor:bend=0=470|820
input:@40fd2c74486e4494/=Filter_5.40fd2c7420761db6
output:@40fd2c7445835585/=
prop:InputKey=<<EOX
0
EOX
prop:LookupKey=<<EOX
0
EOX
prop:Script=<<EOX
emit 1:*
emit 'MyFieldName'
EOX
editor:XY=500,870
end:Lookup_3
node:Filter_5
bretype:core::Filter
editor:sortkey=5881105075a96f60_2
input:@40fd2c74167f1ca2/=Head_5.42fbf39e14aa2417
output:@40fd2c7420761db6/=
prop:Script=<<EOX
emit 'record' as MyFieldName
EOX
editor:XY=410,880
end:Filter_5
node:Head_5
bretype:core::Head
editor:sortkey=58810ed9310e5ed2_4
input:@42fbf39f1af2376d/=CSV_File_5.58810d597725247e
output:@42fbf39e14aa2417/=
prop:RecordCount=1
editor:XY=330,880
end:Head_5
node:CSV_File_5
bretype:core::CSV File
editor:sortkey=58810d366658128d_4
input:58810d364ec4614a/=Head_2.42fbf39e14aa2417
output:@41e6c6cd11e613c6/=
output:58810d597725247e/out2=
prop:FilenameExpr=<<EOX
FileName
EOX
prop:FilenameOutputField=SourceFile
editor:XY=250,870
end:CSV_File_5
node:Head_2
bretype:core::Head
editor:sortkey=58810ed9310e5ed2_2
input:@42fbf39f1af2376d/=Directory_List_3.40fd2c747c2b1c0a
output:@42fbf39e14aa2417/=
prop:RecordCount=1
editor:XY=170,870
end:Head_2
node:Directory_List_3
bretype:core::Directory List
editor:sortkey=58810cfb5d3c5458_2
output:@40fd2c747c2b1c0a/=
prop:CaseInsensitive=false
prop:DirectoryName=C\My Documents\LavaStorm\Test
prop:Pattern=Sample*.csv
prop:Recurse=true
editor:XY=80,870
end:Directory_List_3