Problem reading collection populated by Get Files

RobertJ

New Member
I have a created a process that reads in the file names in a directory to a collection. This collection then then used in a loop to process each file individually. Setting break points, I can see that the collection is successfully loaded with the file names and when running the process it appears to be advancing row by row but the Read Collection Field only comes back with the file name of the first record in the collection each time the loop is executed. I have previously created a loop structure which reads the contents of a file using the Read Collection business object without problem so I would appreciate any suggestions or help to solve this. Thanks,

--RobertJ
 

Attachments

  • Collection Properties.png
    20.1 KB · Views: 16
  • tion Properties.png
    11.7 KB · Views: 14

VJR

Well-Known Member
Hi RobertJ,

Inside the loop simply use a Calc stage to read each row of the collection in the format [CollectionName.ColumnName] which in your case is [Files2Process.Path].
 
Top