Biztalk schema pipe delimited header/detail on same level -
i have flat file below. i'm having trouble schema layout. switched around have header , detail , created application no problems, customer won't change layout. pretty basic, i'm beginner. how take fields layout , create header , detail? last date field needs in header can see how it's random.
po207730co|1271|customer 1|john doe|1|161075|161075|broom flagged lobby|2|5.62|24-feb-2014|
po207730co|1271|customer 1|john doe|2|167316|167316|cleaner dispatch spray hospital disinfectant w/bleach|1|59.84|24-feb-2014|
po207730co|1271|customer 1|john doe|3|162175|162175|dust pan lobby|2|6.26|24-feb-2014|
po207730co|1271|customer 1|john doe|4|163325|163325|mop wet large general-purpose blue wb/lp|1|18.45|24-feb-2014|
po207730co|1271|customer 1|john doe|5|164715|164715|soap provon medicated tfx|1|32.79|24-feb-2014|
po207730co|1271|customer 1|john doe|6|166338|166338|towel multi-fold scott white|5|18.91|24-feb-2014|
po207814co|1264|customer 2|jane doe|1|cups||bib 20x35 2 ply lab (756220)|1|17.47|24-feb-2014|
po207814co|1264|customer 2|jane doe|2|cups||cup 9oz translucent (098219)|1|24-feb-2014|
po207814co|1264|customer 2|jane doe|3|cups||cup foam 16oz (177190)|2|35.1|24-feb-2014|
po207814co|1264|customer 2|jane doe|4|cups||lid 16/20 whte tab w/sslot (194088)|2|16.57|24-feb-2014|
po207814co|1264|customer 2|jane doe|5|cups||tissue 2-ply 100-sht (343227)|3|16.38|24-feb-2014|
the basic problem here flat file disassembler not support concept of splitting/debatching based on changing values, po207730co -> po207814co example.
so, you'll have regroup po number @ following step.
you have few options:
- use custom xslt map group lines based on po number, split, using receive pipeline on orchestration example. https://social.technet.microsoft.com/wiki/contents/articles/17985.xslt-muenchian-grouping-biztalk-complex-transformation.aspx
- use xpath debatching pattern in orchestration. http://www.biztalkgurus.com/biztalk_server/biztalk_2004/m/biztalk_2004_samples/32438.aspx
either way, parse flat file now, row row.
Comments
Post a Comment