<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">Ah, now I see the problem.  You're misunderstanding the Group constructor's parameters.  Furthermore, I think you ought to use the three-param version, to make sure the group is always generated with same internal field order.</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">I *think* you want this:<br></div><div class="gmail_default"><span style="color:rgb(255,0,0);font-size:13.3333330154419px;font-family:Arial,sans-serif">    </span>var legsGroup = new Group(555,54,[54,second-tag,third-tag,etc]);<br></div><div class="gmail_default">which is the same as:</div><div class="gmail_default">    var legsGroup = new Group(Tags.NoLegs, Tags.Side, [Tags.Side,second-tag,third-tag,etc]);</div><div class="gmail_default"><br></div><div class="gmail_default"><font color="#ff0000">(I'm only guessing that Side is you're delimiter field, based on your previous mails.)</font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">Do NOT add field 555 separately.  The above should do that.  (This is where the 1=1 and 2=1 was coming from; it was using your counter instead of 555.)</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">You should probably create a subclass of Group:</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><font face="monospace, monospace">public class CustomNoLegsGroup : Group</font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><font face="monospace, monospace">{</font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><font face="monospace, monospace">    public static int [] fieldOrder = {Tags.Side, Tags.Whatever1, Tags.Whatever2};</font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><font face="monospace, monospace"><br></font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><font face="monospace, monospace">    public CustomNoLegsGroup()</font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><font face="monospace, monospace">      :base( Tags.NoLegs, Tags.Side, fieldOrder);</font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><font face="monospace, monospace">}</font></div></blockquote><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">I stole the above from here (class NoLegsGroup within TradeCaptureReport):<br></div><div class="gmail_default" style=""><font color="#000000"><a href="https://github.com/connamara/quickfixn/blob/master/QuickFIXn/Message/FIX44/TradeCaptureReport.cs#L5785">https://github.com/connamara/quickfixn/blob/master/QuickFIXn/Message/FIX44/TradeCaptureReport.cs#L5785</a></font><br></div><div class="gmail_default" style=""><font color="#000000"><br></font></div><div class="gmail_default" style=""><font color="#000000">With that custom group class, I think you can write code that looks more similar to the tutorial example:</font></div><div class="gmail_default" style=""><font color="#000000"><a href="http://quickfixn.org/tutorial/repeating-groups.html">http://quickfixn.org/tutorial/repeating-groups.html</a><br></font></div><div class="gmail_default" style=""><font color="#000000"><br></font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 14, 2015 at 8:44 AM, Damion Saunders <span dir="ltr"><<a href="mailto:Damion.Saunders@sucfin.com" target="_blank">Damion.Saunders@sucfin.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">

<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Hi Grant<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I am confused by your comment that the top level order does not matter, as the fact that 555 is not followed by my repeating group is get “Repeating group fields out of order”.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I understand your confusion over FIX.Delimiter as this is one of our classes and holds a value we use often i.e. the FIX delimiter. I only used it as the context help for group
 says its parameters are field and delim. I have changed it to use the int that stores the main field and that does not change anything. i.e.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">            const int SideField = 54;<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">.........<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">.........<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">.........<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">  var legsGroup = new Group(counter , SideField);<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">                legsGroup.SetField(new StringField(SideField,<u></u><u></u></span></p><span class="">
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">                                            legToAdd.Side == TradeSide.Buy<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">                                            ? QuickFix.Fields.Side.BUY.ToString()<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">                                            : QuickFix.Fields.Side.SELL.ToString()));<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
</span><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">The following is the fix it produces which is nearly correct but 555 must be followed by the NoLegs group and the 1=1, 2=1 parameters are not needed.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">8=FIX.4.49=38335=D34=249=XXXXXXXX52=20150914-12:56:09.87956=XXX11=XXX12345678955=CAD75=20150907109=01657167=F375=XXX423=0555=25179=0123455478=15479=15681=06004=C7931=220011=01234520012=0000000XXXXXXXX6X3521=154=160=20150914-13:56:09.000687=45474=5118.55475=0212155476=088885477=CROSS2=154=260=20150914-13:56:09.000687=45474=5117.55475=0712155476=088885477=CROSS10=185<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Damion<u></u><u></u></span></p>
</font></span></div><span class="">

<font style="BACKGROUND-COLOR:#ffffff">
<p><span style="FONT-SIZE:10pt;BACKGROUND:white"><a title="http://www.sucdenfinancial.com/" href="http://www.sucdenfinancial.com/" target="_blank"><font face="Arial, Helvetica, sans-serif" color="#0000ff"></font></a><font face="Arial, Helvetica, sans-serif" color="#0000ff"><a href="http://www.sucdenfinancial.com/" target="_blank">www.sucdenfinancial.com</a></font></span><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE:10pt;BACKGROUND:white"></span></font></p>
<p><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE:10pt;BACKGROUND:white">Sucden Financial Limited, Plantation Place South, 60 Great Tower Street, London EC3R 5AZ<br>Telephone <a href="tel:%2B44%20203%20207%205000" value="+442032075000" target="_blank">+44 203 207 5000</a><br><br>Registered in England no. 1095841<br>VAT registration no. GB 446 9061 33</span></font></p>
<p><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE:10pt;BACKGROUND:white"></span></font><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE:10pt;BACKGROUND:white">Authorised and Regulated by the Financial Conduct Authority (FCA) and entered in the FCA register under no. 114239<br><br></span></font><span style="FONT-SIZE:10pt"><font face="Arial, Helvetica, sans-serif">This email, including any files transmitted with it, is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you are not the intended recipient of this message, please notify <u><a href="mailto:postmaster@sucfin.com" target="_blank">postmaster@sucfin.com</a></u> immediately and delete it from your computer system.</font></span></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:10pt"><font face="Arial"></font></span></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:10pt"><font face="Arial, Helvetica, sans-serif"></font></span></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:10pt"><font face="Arial, Helvetica, sans-serif">We believe, but do not warrant, that this email and its attachments are virus-free, but you should check.</font></span></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:10pt"><font face="Arial"></font></span> </p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:10pt"><font face="Arial"></font></span></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:10pt"><font face="Arial, Helvetica, sans-serif"></font></span></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:10pt"><font face="Arial, Helvetica, sans-serif">Sucden Financial Limited may monitor traffic data of both business and personal emails. By replying to this email, you consent to Sucden Financial 's monitoring the content of any emails you send to or receive from Sucden Financial . Sucden Financial is not liable for any opinions expressed by the sender where this is a non-business email.</font></span></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:10pt"><font face="Arial"></font></span> </p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:10pt"><font face="Arial"></font></span></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:10pt"></span></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:10pt"></span><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE:10pt;BACKGROUND:white">The contents of this e-mail do not constitute advice and should not be regarded as a recommendation to buy, sell or otherwise deal with any particular investment.</span></font></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE:10pt;BACKGROUND:white"></span></font> </p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE:10pt;BACKGROUND:white"></span></font><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE:10pt;BACKGROUND:white"></span></font></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE:10pt;BACKGROUND:white"></span></font></p>
</font><p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><font><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE:10pt;BACKGROUND:white"></span></font><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE:10pt;BACKGROUND:white">This message has been scanned for viruses by </span><span style="FONT-SIZE:10pt"><a title="http://www.mimecast.com/" href="http://www.mimecast.com/" target="_blank"><span style="BACKGROUND:white;COLOR:black">Mimecast</span></a></span></font></font></p>
</span></div>

<br>_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div><font size="2"><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font size="2"><font color="#3333ff"><br></font></font></div><div><font size="2"><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font size="2"><b>Made-To-Measure Trading Solutions.</b></font></div><div><font size="2">Exactly what you need. No more. No less.</font><font size="2"><b><font color="#3333ff"><br></font></b></font></div><div><font size="2"><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div></div>
</div>