{{Quickfixn}} Error on synching messages: 58=MsgSeqNum too low, expecting 279 but received 9

Grant Birchmeier gbirchmeier at connamara.com
Thu Jan 9 10:47:29 PST 2014


You should definitely not handle this or any other sequence number problems
in code.

I'm guessing you reset your local state during mid-session (you probably
deleted your store file during a recompile or something).  Your
counterparty does not expect you to do that, and expects you to resume the
connection with the last seq numbers.

An easy way to correct this is to edit your app's seqnums file to be the
seqnums that your counterparty is expecting (which you can see from that
logon failure).  (The fine contains two seqnums, one for incoming and one
for outgoing.)

This should never actually happen in production, as you probably won't be
stopping/starting your app mid-session, and you certainly wouldn't be doing
things that would cause the store to get deleted/reset.




On Mon, Jan 6, 2014 at 1:42 PM, Manuel Lopez <lopez.post at gmail.com> wrote:

> This is likely some issue with my setting, but I'm trying to figure
> out how to deal with out of synch messages.  The error is:
> 58=MsgSeqNum too low, expecting 279 but received 9
> Or is this something I should be handling in code?  Any pointers are
> appreciated--I may easily have overlooked something obvious.  Thanks.
>
> My counterparty says:
> "Do not use 141=Y on your session.  It is important that sequence
> numbers are ONLY reset at the end of each trading day.  In the event
> of a disconnection our FIX engines can recover any missed messages on
> reconnect.  Always send a logout message when you cleanly disconnect
> your application. This allows us to shutdown your session cleanly and
> identify that you have logged out in a normal manner. If you
> disconnect without sending a logout, we will assume you have
> disconnected abnormally and that there is a problem."
>
> Here is my config file:
>
> # default settings for sessions
> [DEFAULT]
> PersistMessages=Y
> FileStorePath=msgs
> FileLogPath=logs
> ConnectionType=initiator
> UseLocalTime=Y
> StartTime=18:00:00
> EndTime=16:59:00
>
> # session definition
> [SESSION]
> BeginString=FIX.4.4
> SenderCompID=myID
> TargetCompID=theirID
> ReconnectInterval=30
> HeartBtInt=60
> LogonTimeout=10
> LogoffTimeout=10
> SocketConnectPort=n
> SocketConnectHost=n.n.n.n
> MillisecondsInTimeStamp=N
> ResetOnLogout=N
> ResetOnDisconnect=N
> RefreshOnLogon=Y
> EnableLastMsgSeqNumProcessed=N
> MaxMessagesInResendRequest=0
> SendLogoutBeforeDisconnectFromTimeout=Y
> IgnorePossDupResendRequests=N
> ValidateFieldsOutOfOrder=Y
> ValidateFieldsHaveValues=Y
> ValidateUserDefinedFields=Y
> RequiresOrigSendingTime=Y
> UseDataDictionary=Y
> DataDictionary=spec/fix/FIX44.xml
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>



-- 
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20140109/057901aa/attachment-0002.htm>


More information about the Quickfixn mailing list