Connector Parser.ProcessTextFile

WilleaAnn
New Contributor II

Hi,

I'm trying to use a csv file from a filepath as a data source for my connector. Have saw this function in OneStream parser rule, I tried but it gives me an object reference error without any clue on the error message.

api.Parser.ProcessTextFile(si, filePath, api.ProcessInfo, Nothing)

with the following syntax 

WilleaAnn_0-1676539729534.png

Has anyone tried it before or have encounter the same issue as I am?

How can I make it work?

Thanks in advance for your response.

1 REPLY 1

JackLacava
Community Manager
Community Manager

That api call should work. Chances are that the path to the file is not in the right format or otherwise not accessible by the application. Pasting documentation from the API chm:

JackLacava_0-1676546543354.png