<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 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-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.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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">So to be clear, the message below is invalid FIX. You can not handle a tag twice unless it is in a repeating group. This is probably something your counterparty should be correcting. Plus, tag 159 doesn’t really make sense on a Quote Message.
 So something funny is going on.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If all you need is for the message to not be rejected, then maybe you could configure your settings to not use a DataDictionary, and turn off all the validation flags? Not sure if this will work. I think you may still reject.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> Quickfixn <quickfixn-bounces@lists.quickfixn.com>
<b>On Behalf Of </b>Russell Watson<br>
<b>Sent:</b> Wednesday, August 7, 2019 9:50 AM<br>
<b>To:</b> Mailing list for QuickFIX/n <quickfixn@lists.quickfixn.com><br>
<b>Subject:</b> Re: {{Quickfixn}} Quote <S> Tag appears more than once<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Thanks Kevin for the prompt response much appreciated.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">If I understand correctly then my problem isn't with groups as there is not actually a 9876 tag is the message, I was trying to use groups to allow the use of tag 159 twice. My problem is with the same tag 159 (in yellow bellow) being used
 twice. Any ideas how I handle 159 twice?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">8=FIX.4.2 9=355 35=S 49=xxx 115=xxxx 56=xxxxxx 34=2 52=20190807-10:10:45 43=N 131=OR00999999x001 117=OU1JZXLH8B0000B4 55=TR30 48=GB00B24FF097 22=4 167=CS 207=L 6158=xxxx 537=1 132=136.68 134=250000 188=0.00
<span style="color:black;background:yellow">159=29.99</span> 133=138.18 135=250000
<span style="color:black;background:yellow">159=29.66</span> 190=0.00 157=62 60=20190807-10:10:45.457 62=20190807-10:11:15 63=6 64=20190808 15=GBP 120=GBP 9007=1 10=116
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Rgds<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Russell<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed, 7 Aug 2019 at 14:30, Kevin Carlton <<a href="mailto:kcarlton@k2.ca">kcarlton@k2.ca</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">Russel,
<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">You have set up the NoAccruedInterestAmt (9876)  group, with one field AccruedInterestAmt (159). But in the FIX message you provided there is no tag 9876. For the “group” to be
 parsed correctly, there needs to be one 9876 tag for each 159.<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">It would like:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">9876=1<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">159=29.99<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">9786=2<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">159=29.66<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">The first 159 field belongs to the 9876=1 group, and the second to the second group.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">In code you can then specify which 9876 group you want, by the number.<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"><b>From:</b> Quickfixn <<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a>>
<b>On Behalf Of </b>Russell Watson<br>
<b>Sent:</b> Wednesday, August 7, 2019 7:45 AM<br>
<b>To:</b> <a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a><br>
<b>Subject:</b> {{Quickfixn}} Quote <S> Tag appears more than once<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello,<br>
<br>
After many days of research and re-reading (<a href="http://quickfixn.org/tutorial/custom-fields-groups-and-messages.html" target="_blank">http://quickfixn.org/tutorial/custom-fields-groups-and-messages.html</a>) many times and trial and error regrettably I
 have been unable to solve the error of Tag appears more than once in Quote <S> message<br>
<br>
The messages I am receiving<br>
<br>
<incoming> 8=FIX.4.2 9=355 35=S 49=xxx 115=xxxx 56=xxxxxx 34=2 52=20190807-10:10:45 43=N 131=OR00999999x001 117=OU1JZXLH8B0000B4 55=TR30 48=GB00B24FF097 22=4 167=CS 207=L 6158=xxxx 537=1 132=136.68 134=250000 188=0.00 159=29.99 133=138.18 135=250000 159=29.66
 190=0.00 157=62 60=20190807-10:10:45.457 62=20190807-10:11:15 63=6 64=20190808 15=GBP 120=GBP 9007=1 10=116
<br>
<br>
<event> Message 2 Rejected: Tag appears more than once (Field=159)<br>
<br>
I have adapted the DataDictionary countless times with no success e.g.<br>
<br>
<messages><br>
  ...<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><message name='Quote' msgtype='S' msgcat='app'><br>
<!-- ... other fields ... --><br>
<group name="NoAccruedInterestAmt" required="N"><br>
      <field name="AccruedInterestAmt" required="N"/><br>
</group><br>
<!-- ... other fields ... --><br>
</message><o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">  ...<br>
</messages><br>
...<br>
<fields><br>
  ...<br>
<field number='9876' name='NoAccruedInterestAmt' type='NUMINGROUP'/><br>
<field number='159' name='AccruedInterestAmt' type='AMT' /><br>
</fields> <o:p></o:p></p>
</div>
</div>
</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>
</body>
</html>