<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><div class="gmail_default">Top-level tag order in the body does not matter, so you can ignore that.  QF internally sorts them numerically.  Only fields within repeating groups have order preserved (which FIX mandates).<br></div><div class="gmail_default"><br></div><div class="gmail_default">I think the 1=1 is coming from your "Fix.Delimiter".  I don't know what Fix.Delimiter is, but it's not from the engine.  The second argument of Group should be the first tag contained in the group (which is always required to be present).</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 11, 2015 at 3:15 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";color:black">Hi<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">I am trying to create a NewSingleOrder with a NoLegs group, but there is an error occurring (no message to tell me what ) and the FIX message is being created in
 numeric order (apart from the group which is tagged onto the end). Added to this the group has an additional tag of 1=1 that I don’t want.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">I suspect that it is the group that I am adding that is causing the issue. I am looping through each leg that I need to add and creating a group as follows<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">            for (var counter = 1; counter <= legs.Count; counter++)<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";color:red">{<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";color:red">            var legToAdd = legs[counter - 1];<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";color:red">            var legsGroup = new Group(counter, Fix.Delimiter);<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";color:red">            legsGroup.SetField(new StringField(<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">                                                                                                SideField,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">                                                                                                legToAdd.Side == TradeSide.Buy<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">                                                                                                ? QuickFix.Fields.Side.BUY.ToString()<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">                                                                                                : 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";color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">The fix that is being created is
<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" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">8=FIX.4.4 9=280 35=D 34=2 49=XXXXXX 52=20150910-13:22:52.741 56=XXX 11=XXX123456 55=NID 75=20150909 109=02582 167=F 375=XXX 423=0 555=1
 6004=S 7931=2 20011=012345 20012=012345 1=1 54=1 60=20150910-14:22:49.000 687=1 5474=9875 5475=041215 5476=012345 5477=CROSS 10=169</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue"><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"">The first part of the FIX message is wrong because it is in the wrong order and the group should follow the 555 NoLeg indicator. I have a function that creates the message
 correctly and passes it into the constructor of a Message object. This uses the DataDictionary and creates a correct Fix Message, so I know my DataDictionary is correct. I think it is the way that I am creating the group that is wrong.<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"">Can any body help?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><u></u> </span></p></div></div></blockquote></div><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></div>