hey raj if you cna give me some more info, i think i can be of some help.
wht are you gonna do wid the FF ie map to DB or convert it to diff format something like that n if possible can you paste some real data( couple of rows from ur original FF).
I would say create record with recordWithNoID and add all the fields in there (even the repeating fields…You may have to use diff name for repeating field if same field names are not allowed under a record…not sure) .Because even though they are repeating they are sent as a separate fields by the source system
So downstream if the requirement was to insert just one repeating field into DB then code such that you drop the other field
if u know the maximum number of fields coming in one row then create a flat file dictionary with that many fields (field1,field2,…,fieldn) and make those fields optional.
Then loop over the recordWithNoID and just map to target format.
Let me know if it works else we can find some solution …
I agree with Karan’s point .If max rows are known then define them as optional or else i don’t think this(variable file format) can be done using flatfile schemas
Instead you may have to read each record and tokenize based on the delimiter(comma in your case) and Loop over the string list(tokenize output ) and map each field accordingly