<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">The conversation for this post has moved to <a href="https://github.com/connamara/quickfixn/pull/513">https://github.com/connamara/quickfixn/pull/513</a></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 18, 2019 at 12:15 AM オイゲン デュック <<a href="mailto:eugen@tworks.co.jp">eugen@tworks.co.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi<br>
<br>
I've stripped down a more complex example of a custom fix message that <br>
QuickFix/n will throw an exception on when parsing:<br>
<br>
<message name="Example" msgtype="EX" msgcat="app"><br>
   <group name="NoEx1" required="Y"><br>
     <group name="NoEx1A" required="Y"><br>
       <field name="Symbol" required="Y"/><br>
     </group><br>
   </group><br>
</message><br>
<br>
I can create messages using that defintion like this:<br>
<br>
var exampleMsg = new Example();<br>
var ex1Grp = new Example.NoEx1Group();<br>
var ex2Grp = new Example.NoEx1Group.NoEx1AGroup { Symbol = "ABC" };<br>
ex1Grp.AddGroup(ex2Grp);<br>
exampleMsg.AddGroup(ex1Grp);<br>
<br>
which will be serialized to something like<br>
<br>
8=FIXT.1.1 9=29 35=EX 12345=1 12346=1 55=ABC 10=223 <br>
<br>
However, when parsing the message, I get the aforementioned exception:<br>
<br>
GroupDelimiterTagException  "Group 12345's first entry does not start <br>
with delimiter 0"<br>
<br>
If I add some non-group field to "NoEx1" and set it, then the message <br>
will be parsed. But unfortunately, that's not conforming to the custom <br>
fix spec.<br>
<br>
Is there a way to work around this "group with a group as the first item"?<br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div><font size="2"><span style="background-color:rgb(0,0,0)"><span style="background-color:rgb(255,255,255)">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:rgb(255,204,51)"><span style="background-color:rgb(255,204,102)"><span style="background-color:rgb(255,204,153)"><span style="background-color:rgb(255,255,255)"><span style="background-color:rgb(255,204,0)">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>