none
How can we process the empty through Flat File disassemble RRS feed

  • Question

  • Hi 

    I need to process the "|" delimited file through FF disassemble ,it's is working however receive the empty file through pipeline line 

    it's generated Error ,please let me know how can we write the pipeline code to handle this issue.

    Tuesday, August 9, 2016 2:47 AM

Answers

  • Hello,

    Rather than ignoring the file like the FILE adapter, FTP Adapter does try and process an empty file and it throws an error – “no disassembler stage recognizes the document” If your client actually wants the empty file to be processed and mapped to an XML document (which basically just had the summary of zero rows) and sent out as normal.

    The only way to achieve this you have to create a BizTalk Decode pipeline component that checked to see if the length of the message was empty, and if it was, put a configurable string into the message so that it wasn't empty anymore and could be parsed by the flat file disassembler.

    Refer the discussion around it : To pass an empty or zero sized message coming from source via biztalk

    If you wish to skip that flatfile from processing. Refer the discussion:  Skipping empty flatfile messages


    Rachit Sikroria (Microsoft Azure MVP)


    Tuesday, August 9, 2016 3:12 AM
    Moderator

All replies

  • Hello,

    Rather than ignoring the file like the FILE adapter, FTP Adapter does try and process an empty file and it throws an error – “no disassembler stage recognizes the document” If your client actually wants the empty file to be processed and mapped to an XML document (which basically just had the summary of zero rows) and sent out as normal.

    The only way to achieve this you have to create a BizTalk Decode pipeline component that checked to see if the length of the message was empty, and if it was, put a configurable string into the message so that it wasn't empty anymore and could be parsed by the flat file disassembler.

    Refer the discussion around it : To pass an empty or zero sized message coming from source via biztalk

    If you wish to skip that flatfile from processing. Refer the discussion:  Skipping empty flatfile messages


    Rachit Sikroria (Microsoft Azure MVP)


    Tuesday, August 9, 2016 3:12 AM
    Moderator
  • Hi,


    You need to check how BizTalk can process zero byte files. Please check the following articles.

    https://connectedpawns.wordpress.com/2016/02/20/processing-zero-byte-files-with-biztalk-server/

    https://ninocrudele.me/2012/07/05/biztalk-and-zero-byte-file/

    http://stackoverflow.com/questions/20474225/processing-empty-files-in-biztalk-2010


    Regards Pushpendra K Singh

    Tuesday, August 9, 2016 1:51 PM
  • Hello,

    Rather than ignoring the file like the FILE adapter, FTP Adapter does try and process an empty file and it throws an error – “no disassembler stage recognizes the document” If your client actually wants the empty file to be processed and mapped to an XML document (which basically just had the summary of zero rows) and sent out as normal.

    The only way to achieve this you have to create a BizTalk Decode pipeline component that checked to see if the length of the message was empty, and if it was, put a configurable string into the message so that it wasn't empty anymore and could be parsed by the flat file disassembler.

    Refer the discussion around it : To pass an empty or zero sized message coming from source via biztalk

    If you wish to skip that flatfile from processing. Refer the discussion:  Skipping empty flatfile messages


    Rachit Sikroria (Microsoft Azure MVP)



    Rachit, you're invited to join us as a Moderator: https://social.msdn.microsoft.com/Forums/en-US/a9ef4c76-69a4-4516-9f8c-09479f37e616/needed-more-answerers?forum=biztalkgeneral

    Ed Price, Azure Development Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)

    Answer an interesting question? Create a wiki article about it!

    Wednesday, August 10, 2016 7:03 PM
    Owner