I have multiple files under \iguana_training folder like “designation”,”nationality”,”race”,”religion”
This is my piece of code

local Dir = [[C:\Program Files\iNTERFACEWARE\Iguana\iguana_training\]]
for FileDir, FileInfo in os.fs.glob(Dir..’*.csv’) do –look for the files under the specified —
–directory
trace(FileDir)
FileName=FileDir:sub(55) –extract the file name alone
if FileName:sub(1,11)==’Designation’ then –check for designation file
trace(FileName)

local CsvMsg = csv.parseCsv(Data) –parse the csv file and map to a dummy —
–template
trace(CsvMsg)
local XMLTemplate=xml.parse{data=temp}
local Result = mapdata(XMLTemplate,CsvMsg)
trace(Result)
URL=’https://localhost:6544/response ‘ –post the response to a webservice
UNAME=”
PWD=”
local response, status, headers =
net.http.post{
url=WFOURL,
body = Result ,
live=true,
auth={username=UNAME,password=PWD},
headers={[‘Content-Type’]=’text/xml’},
timeout=300}

1. I can see the annotations working as expected(capture.jpg) ie it looked for the designation file and done the mapping and if condition failed for other files
2.When i run this channel, all the files are read when i checked the iguana logs(capture2.jpg).
3. the csv file is not parsed and no mapping was done. Just a log that message successfully processed by translator

So i am not sure which part i am missing.

Attachments:
You must be logged in to view attached files.