Thanks for the response. My issue was posted yesterday, but noone has responded to it as of yet. Here is what I wrote. I’m curious if the issue you experienced and the problem I’m facing is similar. Here’s what I wrote:
Hi Everyone. I cannot figure out how to do this and how this works. See the below data (very simplified, but I believe mirrors my issue):
|JOE|ROBERTS|3 <== Header (1 only), the last field “3” represents how many line items will follow
|4555|1.50|CHAINS|4556|1.55|NUTS|4557|1.60|BOLTS <== represents the 3 line items (could have 3 details, could have 200, it is unlimited)
|3.65|END| <=== Footer (1 only)
I cannot figure out how to properly set this up. I think I’m having the most issues trying to figure out how to handle the line item situation. How do you set up the schema so that in that one continuous pipe delimited line, the parser will know that there are 3 line items in it and where each detail line starts and stops.
I’ve set up a flat file dictionary whereas there are 3 different sections: one for the Header, one for the Detail, and one for the footer.
The schema was set up so that the detail line’s max repeat is unlimited. In Flat File definition -> delimiter was selected; record is setup as newline and subfield is setup as |. Yet I continue to get “No Valid Record” errors.
Can someone please help me with this?