# Sequence Number resetting

**URL:** <https://forum.fixtrading.org/t/sequence-number-resetting/1985>\
**Category:** General Q&A\
**Tags:** general-qa, xid\_165821, imported\
**Created:** [January 25, 2005, 1:33pm UTC](https://forum.fixtrading.org/t/sequence-number-resetting/1985 "2005-01-25T13:33:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![philjohnston93\_x](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@philjohnston93\_x](https://forum.fixtrading.org/u/philjohnston93_x)\
**Post date:** [January 25, 2005, 1:33pm UTC](https://forum.fixtrading.org/t/sequence-number-resetting/1985/1 "2005-01-25T13:33:53Z")

</div>

Imported from previous forum

---

<div class="post-metadata">

**Author:** ![philjohnston93\_x](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@philjohnston93\_x](https://forum.fixtrading.org/u/philjohnston93_x)\
**Post date:** [January 25, 2005, 1:33pm UTC](https://forum.fixtrading.org/t/sequence-number-resetting/1985/2 "2005-01-25T13:33:53Z")

</div>

Hello.

I’m pretty much a beginner to the FIX Engine world, so apologies if I’m asking something stupid.

I have a problem whereby the expected message sequence number that I receive is too low - I’m expecting a “16” when apparently they only send a “1”. My engine (which is a FIX Antenna Java engine) appears to allow the setting of the sequence number in the engine, although I suspect that this is only for my outgoing messages, rather than incoming ones.

Any ideas on how to reset the expected ‘incoming’ message sequence number?

Any help gratefully received…

Phil Johnston

---

<div class="post-metadata">

**Author:** ![philjohnston93\_x](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@philjohnston93\_x](https://forum.fixtrading.org/u/philjohnston93_x)\
**Post date:** [January 25, 2005, 1:34pm UTC](https://forum.fixtrading.org/t/sequence-number-resetting/1985/3 "2005-01-25T13:34:35Z")

</div>

I’m trying to use FIX 4.3 by the way…!

> Hello.
> 
> I’m pretty much a beginner to the FIX Engine world, so apologies if I’m  
> asking something stupid.
> 
> I have a problem whereby the expected message sequence number that I  
> receive is too low - I’m expecting a “16” when apparently they only send  
> a “1”. My engine (which is a FIX Antenna Java engine) appears to allow  
> the setting of the sequence number in the engine, although I suspect  
> that this is only for my outgoing messages, rather than incoming ones.
> 
> Any ideas on how to reset the expected ‘incoming’ message  
> sequence number?
> 
> Any help gratefully received…
> 
> Phil Johnston

---

<div class="post-metadata">

**Author:** ![fplpo\_x](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@fplpo\_x](https://forum.fixtrading.org/u/fplpo_x)\
**Post date:** [January 25, 2005, 3:48pm UTC](https://forum.fixtrading.org/t/sequence-number-resetting/1985/4 "2005-01-25T15:48:08Z")

</div>

[original email was from Mahesh Kumaraguru - mahesh.kumaraguru@polaris.co.in]  
\> I’m trying to use FIX 4.3 by the way…!

> > Hello.
> > 
> > I’m pretty much a beginner to the FIX Engine world, so apologies if  
> > I’m asking something stupid.
> > 
> > I have a problem whereby the expected message sequence number that I  
> > receive is too low - I’m expecting a “16” when apparently they only  
> > send a “1”. My engine (which is a FIX Antenna Java engine) appears to  
> > allow the setting of the sequence number in the engine, although I  
> > suspect that this is only for my outgoing messages, rather than  
> > incoming ones.
> > 
> > Any ideas on how to reset the expected ‘incoming’ message  
> > sequence number?
> > 
> > Any help gratefully received…
> > 
> > Phil Johnston

Hi Phil,

In FIX 4.2 spec ( FIX-42-with\_errata\_20010501.doc ) page 19, it is mentioned

“If the incoming message has a sequence number less than expected and the PossDupFlag is not set, it indicates a serious error. It is strongly recommended that the session be terminated and manual intervention be initiated.”

I think this has not changed between Fix 4.2 and 4.3 / 4.4.

Regards,  
K. Mahesh  
+1-203-890-7981

---

<div class="post-metadata">

**Author:** ![philjohnston93\_x](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@philjohnston93\_x](https://forum.fixtrading.org/u/philjohnston93_x)\
**Post date:** [January 25, 2005, 5:13pm UTC](https://forum.fixtrading.org/t/sequence-number-resetting/1985/5 "2005-01-25T17:13:13Z")

</div>

Much appreciated - I managed to crack it - it is to do with that check, and there’s a reset setting that was set to “no” by default, when “yes” solved the problems!!!

Now onto the next bug… ☹

> > I’m trying to use FIX 4.3 by the way…!
> > 
> > > Hello.
> > > 
> > > I’m pretty much a beginner to the FIX Engine world, so apologies if  
> > > I’m asking something stupid.
> > > 
> > > I have a problem whereby the expected message sequence number that I  
> > > receive is too low - I’m expecting a “16” when apparently they only  
> > > send a “1”. My engine (which is a FIX Antenna Java engine) appears  
> > > to allow the setting of the sequence number in the engine, although  
> > > I suspect that this is only for my outgoing messages, rather than  
> > > incoming ones.
> > > 
> > > Any ideas on how to reset the expected ‘incoming’ message sequence  
> > > number?
> > > 
> > > Any help gratefully received…
> > > 
> > > Phil Johnston
> 
> Hi Phil,
> 
> In FIX 4.2 spec ( FIX-42-with\_errata\_20010501.doc ) page 19, it  
> is mentioned
> 
> “If the incoming message has a sequence number less than expected and  
> the PossDupFlag is not set, it indicates a serious error. It is strongly  
> recommended that the session be terminated and manual intervention be  
> initiated.”
> 
> I think this has not changed between Fix 4.2 and 4.3 / 4.4.
> 
> Regards,  
> K. Mahesh +1-203-890-7981
