Flat file Parsing

Hi,

I am Parsing a flat file using a schema that I defined. The flat file comes in the following structure
H10
D20–has a child D40
D16
D20
D16
D20
.
.
.
H10
:
:
:
D90 – Final record

The child record D16 and D20 are random in the file. The file is getting parse fine with CovnertToValues service but when I am publishing this data to the broker only H10, then the first D20 under H10 and the first D20 gets published. I have no idea what happens to the rest. Please advise on this if you have prior experience on this type of flat file parsing

Thanks

Hi Emergencee,

probably you have a document type.
H10
D10
D20 (record)-ChildD40
D16 (record)
H10
D90

Right?

It is not clear to me how your structure looks like, but i think you need more hyrarchy in your structure. I think somehting like this:

document (list)
-Header (record)
–lines (list)
—D20 (record)
----D40 (not sure, record or list)
–D16 (record)
-SXX (record, is a summary of the document)

→ next document in your list, etc

I am not sure if this helps you. But Always remember that a business document hat a header and lines.

Rob