Quantcast
Channel: BizTalk Server General Forum
Viewing all articles
Browse latest Browse all 872

Biztalk Split a message into multiple files.

$
0
0

I am receiving a flat file that I map to XML.  I am then mapping to a WCF-SQL generated Schema.  It will only accept one record at a time, so for example if I send the output like this:

<?xml version="1.0" encoding="UTF-8"?>
<ns0:SP_ReleaseHeaderRoot xmlns:ns0="http://schemas.microsoft.com/Sql/2008/05/TypedProcedures/dbo">
 <ns0:SP_InsertReleaseHeader_WCF>
  <ns0:ReleaseNumber>02282011</ns0:ReleaseNumber>
  <ns0:CustomerPurchaseOrderNumber>911911</ns0:CustomerPurchaseOrderNumber>
  <ns0:PartnerID>PARTNER</ns0:PartnerID>
  <ns0:ReleaseDate>31032013</ns0:ReleaseDate>
  <ns0:ReleaseItem>000160890841</ns0:ReleaseItem>
  </ns0:SP_InsertReleaseHeader_WCF>
 <ns0:SP_InsertReleaseHeader_WCF>
  <ns0:ReleaseNumber>02282011</ns0:ReleaseNumber>
  <ns0:CustomerPurchaseOrderNumber>911911</ns0:CustomerPurchaseOrderNumber>
  <ns0:PartnerID>PARTNER</ns0:PartnerID>
  <ns0:ReleaseDate>31032013</ns0:ReleaseDate>
  <ns0:ReleaseItem>000163299103</ns0:ReleaseItem>
  </ns0:SP_ReleaseHeaderRoot>

Only one record is mapped to my SQL DB.

If I send two files, one for each record, I get the proper data in SQL.

I've looked at pipelines or schema envelopes, but I cannot seem to find an example that works.

I'd like to be able to generate one file per "ReleaseItem" in my source.



Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>