Forum Discussion
krupalibshah
9 years agoContributor
Thanks for the input.
Yes H and I are for header and line items.
I have done similar thing where I am routing H and I to different mapper and processing them individually. Once done I did a merge join and getting one H+I and I in 2 documents. I want H+I+I in one document.
/KS
nganapathiraju
9 years agoFormer Employee
Try doing this. Of course I used all dummy variables but here are the main steps.
- Read Incoming file into 2 parsers
- Read the first one with header H
- Read the second one with I
- Do any Transformations specific to H and I on that specific route
- On the I route, merge all of them into a single array
- Merge join them in the end
- After the join, use JSON splitter on the I and add each individual H item using the “Including Path”
- You can do further massaging of the data after the JSON splitter.
Look at this example.
H and I_2017_08_15.slp (8.5 KB)
- krupalibshah9 years agoContributor
I get this error,
/KS
- krupalibshah9 years agoContributor
Solved the issue and I can see one header and 2 line items in one document.
Thanks for the help.- Piyush9 years agoNew Contributor III
Can you kindly share the final solution