{{Quickfixn}} FIX message contains bad character, how can we skip it

Toomey, Sean Sean.Toomey at broadridge.com
Wed Aug 11 16:09:00 PDT 2021


Hi All,

Looking for some advice on how to handle this situation (https://github.com/connamara/quickfixn/issues/683), raised by someone else earlier this year but I just ran into it earlier today.

How can malformed messages be rejected and bypassed in code? Right now it seems the only solutions are no validation or manual intervention. Thanks.

Issue defined below:
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 ..."
Session FIX.4.4:TEST->CLIENT disconnecting: QuickFix.InvalidMessage: Invalid message: Expected BodyLength=797, Received BodyLength=795
at QuickFix.Session.Next(MessageBuilder msgBuilder)
at QuickFix.SocketInitiatorThread.ProcessStream()
at QuickFix.SocketInitiatorThread.Read()
Workaround

  1.  Stop FIX engine and jump the sequence number by one.
Is it possible to extend QuickFixN so it delivers the payload as bad message then jumps to the next message?



Sean Toomey | Development Manager, Securities Finance Collateral Management | Broadridge Financial Solutions, Inc.
p +1 413-395-9511 | m +1 413-281-2180
[cid:image009.jpg at 01D78EE4.56DA6540]<https://www.linkedin.com/company/broadridge-financial-solutions> [cid:image010.jpg at 01D78EE4.56DA6540] <https://twitter.com/broadridge>  [cid:image011.jpg at 01D78EE4.56DA6540] <https://www.youtube.com/user/BroadridgeInsights>  [cid:image012.jpg at 01D78EE4.56DA6540] <https://www.facebook.com/BroadridgeCareers>
broadridge.com<http://www.broadridge.com/>

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20210811/a3662c89/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.jpg
Type: image/jpeg
Size: 728 bytes
Desc: image009.jpg
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20210811/a3662c89/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.jpg
Type: image/jpeg
Size: 741 bytes
Desc: image010.jpg
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20210811/a3662c89/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image011.jpg
Type: image/jpeg
Size: 726 bytes
Desc: image011.jpg
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20210811/a3662c89/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image012.jpg
Type: image/jpeg
Size: 715 bytes
Desc: image012.jpg
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20210811/a3662c89/attachment-0003.jpg>


More information about the Quickfixn mailing list