<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:814447708;
        mso-list-template-ids:1081497256;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Looking for some advice on how to handle this situation (<a href="https://github.com/connamara/quickfixn/issues/683">https://github.com/connamara/quickfixn/issues/683</a>), raised by someone else earlier this year but I just ran into it
 earlier today.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">How can malformed messages be rejected and bypassed in code? Right now it seems the only solutions are no validation or manual intervention. Thanks.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Issue defined below:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt;background:white">
<i><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E">Certain brokers sending us a FIX message where the tag 58 value contains invalid characters that causes the FIX engine to stop with "Invalid message: Expected ..."<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><i><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E">Session FIX.4.4:TEST->CLIENT disconnecting: QuickFix.InvalidMessage: Invalid message: Expected BodyLength=797,
 Received BodyLength=795<br>
at QuickFix.Session.Next(MessageBuilder msgBuilder)<br>
at QuickFix.SocketInitiatorThread.ProcessStream()<br>
at QuickFix.SocketInitiatorThread.Read()<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><b><i><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E">Workaround</span></i></b><i><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E"><o:p></o:p></span></i></p>
<ol start="1" type="1">
<li class="MsoNormal" style="color:#24292E;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;background:white">
<i><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">Stop FIX engine and jump the sequence number by one.<o:p></o:p></span></i></li></ol>
<p class="MsoNormal" style="mso-margin-bottom-alt:auto;background:white"><i><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E">Is it possible to extend QuickFixN so it delivers the payload as bad message then jumps to the next message?<o:p></o:p></span></i></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:6.0pt"><b><span style="font-size:10.0pt;color:black">Sean Toomey</span></b><span style="font-size:10.0pt;color:black"> |
</span><span style="font-size:10.0pt;color:#231F20">Development Manager, Securities Finance Collateral Management
</span><span style="font-size:10.0pt;color:black">| Broadridge Financial Solutions, Inc.<br>
p +1 413-395-9511 | m +1 413-281-2180<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:.5pt;margin-right:0in;margin-bottom:.5pt;margin-left:0in">
<span style="font-size:10.0pt;color:black"></span><a href="https://www.linkedin.com/company/broadridge-financial-solutions"><span style="font-size:10.0pt;color:black;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_4" src="cid:image009.jpg@01D78EE4.56DA6540"></span></a><span style="font-size:10.0pt;color:black"> </span><a href="https://twitter.com/broadridge"><span style="font-size:10.0pt;color:black;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_5" src="cid:image010.jpg@01D78EE4.56DA6540"></span></a><span style="font-size:10.0pt;color:black"> </span><a href="https://www.youtube.com/user/BroadridgeInsights"><span style="font-size:10.0pt;color:black;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_6" src="cid:image011.jpg@01D78EE4.56DA6540"></span></a><span style="font-size:10.0pt;color:black"> </span><a href="https://www.facebook.com/BroadridgeCareers"><span style="font-size:10.0pt;color:black;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_2" src="cid:image012.jpg@01D78EE4.56DA6540"></span></a><span style="font-size:10.0pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:.5pt;margin-left:0in">
<u><span style="font-size:10.0pt;color:black"><a href="http://www.broadridge.com/"><span style="color:black">broadridge.com</span></a></span></u><u><span style="color:black"><o:p></o:p></span></u></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>

<DIV>
This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.<BR>
</DIV></body>
</html>