Posted: Wed Dec 20, 2017 11:36 pm Post subject: Reading multiple records using FileRead node
Newbie
Joined: 20 Dec 2017 Posts: 1
Hi,
In a directory I have multiple records, everyday at specified time (using timeout control) I need to read them all and transfer to another directory. I am able to read only one record from the directory and then process is getting terminated.
Hi Pooja...just to be clear, by 'multiple records' did you mean multiple records in a single file or multiple files itself? If you are expecting the FileRead node to read multiple files in a single go I don't think it will do that in a single transaction. You will have to re-trigger the flow for the FileRead not to pick up the next file (preferably not by internal loop wiring with the same flow to avoid stack fill-up issues, eg:- you could re-trigger the flow by sending an MQ message to itself and using the MQInput node, i.e the flow will have the trigger and MQInput nodes in it, alternatively you could just get ride of trigger node and just use MQInput node and trigger it initially by a cron job etc).
For reading multiple files can't you use the simplest way of using a FileInput node instead of trigger nodes
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum