Hello All,
I have a requirement like, I need to read the text file using SFTP adapter. for this I have used ModuleTransformBean in Module tab of SFTP.
Text file contain Header filed values and record types(04,05,06) and then Files Trailer .
So I have created structure like as below
Since FileHeader and FilerTrailer records will be comes only once per text file so that i have given as Occurrence 1
And the parameter that I maintained in the adapter module tab are
Case 1:
xml.recordsetStructure - FileHeader,*,Documents,*,Payments,*,PaymentInstruments,*,FileTrailer,*
Now the output Structure is
Case 2:
Since FileHeader and FilerTrailer records will be occurs only once in a files so I have mentioned the parameters like as below
xml.recordsetStructure - FileHeader,1,Documents,*,Payments,*,PaymentInstruments,*,FileTrailer,1
xml.recordsetStructureOrder - var
Now the structure coming like
So As per my requirement I should repeat the Recordset and FileHeader and FileTrailer occurrence should be one
Can any one please help in this requirement
Thanks in advance.
Thanks
Pavan
