BizTalk Server: Multiple XML files to Single FlatFile Using File Adapter - Configuring and testing

Configuring the application 



Receive Port


Receive Location



Send Port


Send pipeline: MXSFF (Custom flat file)


Destination URI





    File name: %SourceFileName%.txt (puts the value of the FILE.ReceivedFileName)
  • Copy mode: Append (The file send handler opens a file if it exists and appends a message to the end of the file. If the file does not exist, the file send handler creates a new file)


So for example, when first message or batch of messages are received on date 10-11-2014 then new file will be created at destination location having 10-11-2014.txt and then after whatever messages are received until the end of date are appended to the same file. But a new file will be created for messages received on next day.




Configuring send pipeline (Flat file assembler)





Configuring Orches07ation


Testing the application


To test the functionality of application, considered two test cases

Testcase 1: First files of the day


Input: Placed three sample files in XMLIN folder (input location)



Output: A file with today’s date was generated at FFOut (destination location)


Testcase 2: Rest files of the day


Input: Placed two sample files in XMLIN folder (input location)
Output: Records were appended to the existing file




Download Sample



ServerLess360


Comments

Popular posts from this blog

The request has both SAS authentication scheme and 'Bearer' authorization scheme. Only one scheme should be used

Getting Started with Logic Apps - AS2

How to Debug and Trace request in Azure APIM - Portal, Postman, RequestBin