<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=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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;}
--></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=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks a lot for the explanation.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jie Zhu<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Quickfixn [mailto:quickfixn-bounces@lists.quickfixn.com] <b>On Behalf Of </b>Mike Gatny<br><b>Sent:</b> Thursday, January 03, 2019 12:13 PM<br><b>To:</b> Mailing list for QuickFIX/n<br><b>Subject:</b> Re: {{Quickfixn}} Where is 141=Y coming from for our 35=A message<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>You have worked around the issue correctly by removing tag 141 in ToAdmin().<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>That said.... why is QF/n including 141=Y on the first logon?  Because that is what FIX Protocol specifies when a new Session starts.  Sessions can be 24 hours, a week long, whatever you like... but when one Session ends and another begins, the protocol says that initiators should logon with 141=Y.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I think your counterparty does not allow 141 at all because they do not want initiators to reset on <i>every</i> logon.  And that's almost always a good thing: resetting on every logon thwarts the resend/reliability mechanism of the protocol.  But maybe they've gone a little too far by not allowing it even when it makes sense (i.e. at Session start).<o:p></o:p></p></div><div><div><div><div><div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>--</span><o:p></o:p></p></div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Mike Gatny</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Connamara Systems</span><o:p></o:p></p></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Thu, Jan 3, 2019 at 10:38 AM Jie Zhu <<a href="mailto:Jie.Zhu@icbkfs.com">Jie.Zhu@icbkfs.com</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi,<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>       We have a counterparty which serves a fix acceptor.  Their fix engine doesn’t not support tag 141=Y in 35=A message. <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>       We act as fix intiator and every day we restart our fix application at 9:00am.   But for the first 35=A logon message, there is a tag 141=Y in it.   If we are disconnect in the middle of the day, there is no such tag.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>      For the 35=A with tag 141, our counterparty has a log   “<span style='font-size:9.0pt;font-family:"Arial","sans-serif"'> 2019/01/03 09:00:12:417: FIXConnectionData: Sending data on connection {C073GEMS} [8=FIX.4.4_9=0129_35=5_49=test1_56=test2_34=1_52=20190103-14:00:12_58=00100000001nr76_10413- CODE: 1-200-A-141: <span style='background:yellow'>Logon with 141=Y is not supported</span>_10=075_]</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>“,  apparently their system doesn’t support 141=Y in the 35=A message. <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>    In our fix settings, we have ResetOnLogon=N  ResetOnLogout=Y ResetOnDisconnect=N.  The way we start our fix intiator every day is something like,<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'>                </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white'>IMessageStoreFactory</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'> storeFactory = </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white'>new</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white'>FileStoreFactory</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'>(settings);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'>                </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white'>ILogFactory</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'> logFactory = </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white'>new</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white'>FileLogFactory</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'>(settings);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'>                </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white'>SocketInitiator</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'> initiator = </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white'>new</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white'>SocketInitiator</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'>(app, storeFactory, settings, logFactory);</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white'>                initiator.Start();</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.5pt;font-family:Consolas;color:black'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.5pt;font-family:Consolas;color:black'>  </span>     I remove the 141 tag in ToAdmin() method to get rid of this tag to fix the issue but still curious where the 141=Y coming from for our everyday’ s first log in.  Please help. <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Thanks,<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Jie<o:p></o:p></p></div><p>This email and any attached files are confidential and may be legally privileged. If you are not the intended recipient, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify the sender immediately and then delete this email. Email transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore is in no way liable for any errors or omissions in the contents of this message which may arise as a result of email transmission. If verification is required please request a hard copy.<o:p></o:p></p></div><p class=MsoNormal>_______________________________________________<br>Quickfixn mailing list<br><a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><o:p></o:p></p></blockquote></div></div><p>This email and any attached files are confidential and may be legally privileged. If you are not the intended recipient, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify the sender immediately and then delete this email. Email transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore is in no way liable for any errors or omissions in the contents of this message which may arise as a result of email transmission. If verification is required please request a hard copy.</p></body></html>