New to IRIS. How do I read in a CSV file?
I'm trying to read in a CSV file and map to MFN^M16. The first problem I'm having is getting the Service to read the file without causing errors (see below). I'm using EnsLib.File.PassthroughServicebecause (as I understand it) it allows for anything.
ERROR <Ens>ErrBPTerminated: Terminating BP CSVtoHL7M16 # due to error:
ERROR <Ens>ErrException: <PROPERTY DOES NOT EXIST>zOnRequest+1^EnsLib.MsgRouter.VDocRoutingEngine.1 *DocType,Ens.StreamContainer -- logged as '-' number - @'' >
ERROR <Ens>ErrException: <PROPERTY DOES NOT EXIST>zOnRequest+1^EnsLib.MsgRouter.VDocRoutingEngine.1 *DocType,Ens.StreamContainer -- logged as '-' number - @''
What am I missing?
Comments
I am not aware that a CSV could be read in via EnsLib.File.PassthroughService. From what I was taught a CSV would have to be mapped to a RecordMap then you can parse out the CSV using EnsLib.RecordMap.Service.FileService.
https://docs.intersystems.com/healthconnect20191/csp/docbook/DocBook.UI.Page.cls?KEY=EGDV_recmap
Scott