none
Biztalk Multipart Message with the same PartNames not able to update RRS feed

  • Question

  • Hi all,

    Biztalk receiving the Mail with the  same attachment filenames(2 duplicate attachments).

    In biztalk while sending the message(SMTP) to destination system not able to update the same partname in message(Multipart).

    Getting the following error.

    part name of the message already exists

    Can you please help on this.

    Thanks

    Srinivas

    Thursday, July 2, 2020 9:25 PM

All replies

  • It's a limitation that you'll have to workaround.

    When the parts are decoded, you'll need to assign them unique names.  The out-of-the-box MIME decoder is quite basic in what it allows you to do, and in this sort of situation I've turned to writing a custom pipeline with the MimeKit library, which gives you great control on deconstructing and constructing MIME messages.

    Providing that there is no business logic that depends on the attachments being named the same, I'd simply prepend a counter to subsequent attachment parts.


    If this is helpful or answers your question - please mark accordingly.
    Because I get points for it which gives my life purpose (also, it helps other people find answers quickly)
    Read my articles on: BizTalk | .NET

    Friday, July 3, 2020 11:50 AM
  • Hi Alastair,

    Thanks for your reply.

    I am working on writing custom pipeline component .

    Thanks

    srinivas 

    Wednesday, July 8, 2020 7:00 PM