Search code examples
biztalkedibiztalk-2013

Control the transactionSet in EDI Batching Service


I am using BizTalk Batching service generating some X12 files now, Now, For the outbounding messages, I am processing the messages one by one and then send to BizTalk Batching service to build the file. Problem is now the BizTalk will add ST/SE for every single message I send to Batching service, If I put 5000 records in the batching, it will generate a file with 5000 ST-SE .

I am wondering if there's a way to control the ST/SE pairs so I can, say, have 5 ST/SE in the file, each have 1000 records. instead of current 5000 ST-SEs.


Solution

  • For clarity, you're getting 5000 ST/SE's because you are sending 5000 ST/SE's. The Batching Service is not changing your messages in any way.

    To restructure the message, you can intercept the batched output in an Orchestration or Pipeline Component and merge the Loops, at whatever level you want, into a single ST. This would be a custom procedure.