# Sequence Reset with Begin/EndSeqNo

**URL:** <https://forum.fixtrading.org/t/sequence-reset-with-begin-endseqno/13024>\
**Category:** General Q&A\
**Tags:** imported, 40-session, xid\_164658\
**Created:** [December 11, 2007, 2:35pm UTC](https://forum.fixtrading.org/t/sequence-reset-with-begin-endseqno/13024 "2007-12-11T14:35:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![evaschmidt\_x](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@evaschmidt\_x](https://forum.fixtrading.org/u/evaschmidt_x)\
**Post date:** [December 11, 2007, 2:35pm UTC](https://forum.fixtrading.org/t/sequence-reset-with-begin-endseqno/13024/1 "2007-12-11T14:35:15Z")

</div>

Imported from previous forum

---

<div class="post-metadata">

**Author:** ![evaschmidt\_x](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@evaschmidt\_x](https://forum.fixtrading.org/u/evaschmidt_x)\
**Post date:** [December 11, 2007, 2:35pm UTC](https://forum.fixtrading.org/t/sequence-reset-with-begin-endseqno/13024/2 "2007-12-11T14:35:15Z")

</div>

Hello guys,

I’ve got a short question refering to SequenceReset messages. Imagine the following scenario:

1.) Send Logon message (SeqNo=8) with SeqNum \> SeqNum expected  
(i.e. 8 \> 5)  
2.) Receive Logon (SeqNo=10) with SeqNum \> SeqNum expected  
(i.e. 10 \> 7)  
3.) Send ResendRequest (SeqNo=9) with  
BeginSeqNo=7, EndSeqNo=0  
4.) Receive ResendRequest (SeqNo=11) with  
BeginSeqNo=5, EndSeqNo=8

I know that all messages asked for are session level messages that can be skipped, so I don’t have to send a SequenceReset for any single message.  
My question:  
Would it be correct to send a SequenceReset with SeqNo 5 - this had been the BeginSeqNo - and NewSeqNo = 10 ?

Because I was asked for 5-8, I know these were session level messages, but due to the Logon and the ResendRequest message my next/new SeqNo will be the 10. So NewSeqNo MUST be the next SeqNo that will be sent and is not influenced by the EndSeqNo asked for in the ResendRequest.

Or am I wrong in my opinion?

Thanks,  
Eva

---

<div class="post-metadata">

**Author:** ![sunilsingh57\_x](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sunilsingh57\_x](https://forum.fixtrading.org/u/sunilsingh57_x)\
**Post date:** [December 12, 2007, 11:56am UTC](https://forum.fixtrading.org/t/sequence-reset-with-begin-endseqno/13024/3 "2007-12-12T11:56:29Z")

</div>

Eva,

Yes, you are correct. Since there is no clear statement in Fix protocol, your fix engine will be able to send tag 36= next seq number and can ignore the seq numbers consumed by the logon & res req message. However the best approach would be to send the seq reset Gap fill message with 36=8. I don’t see any problems in both the approaches.

Regards,  
Sunil

---

<div class="post-metadata">

**Author:** ![joellouis32\_x](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@joellouis32\_x](https://forum.fixtrading.org/u/joellouis32_x)\
**Post date:** [January 25, 2008, 6:17am UTC](https://forum.fixtrading.org/t/sequence-reset-with-begin-endseqno/13024/4 "2008-01-25T06:17:00Z")

</div>

> Eva,
> 
> Yes, you are correct. Since there is no clear statement in Fix protocol,  
> your fix engine will be able to send tag 36= next seq number and can  
> ignore the seq numbers consumed by the logon & res req message. However  
> the best approach would be to send the seq reset Gap fill message with  
> 36=8. I don’t see any problems in both the approaches.
> 
> Regards, Sunil  
> Hi Sunil,

According to you if 36=8 and 123=Y is that correct?

Tnx
