<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Please post the message definition from your data dictionary XML file. Please only post the definition for the message being rejected. Also post the tag definitions for the tags that are present in the message. </div><div><br></div><div>Please don't post the entire data dictionary. </div><div><br><br>Sent from my iPhone</div><div><br>On Nov 19, 2013, at 5:05, "Nirjhar Jain" <<a href="mailto:nirjhar.jain@commdel.net">nirjhar.jain@commdel.net</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><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;}
@font-face
{font-family:"Century Gothic";
panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
h2
{mso-style-priority:9;
mso-style-link:"Heading 2 Char";
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:18.0pt;
font-family:"Times New Roman","serif";
font-weight:bold;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
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";}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.Heading2Char
{mso-style-name:"Heading 2 Char";
mso-style-priority:9;
mso-style-link:"Heading 2";
font-family:"Times New Roman","serif";
font-weight:bold;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.keyword
{mso-style-name:keyword;}
span.number
{mso-style-name:number;}
.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]--><div class="WordSection1"><p class="MsoNormal">Hi All,<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Tutorial tells us to read groups from the message as mentioned below, but they do not mention where to do this coding. The next(message); function in session.cs class is generating reject message and giving reason <b>tag appears more than once in message</b>, as my received msg(Type=W) contains tag=268 repeating group.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Please help me in using the provided info.<o:p></o:p></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:18.0pt;font-family:"Times New Roman","serif"">Reading Groups<o:p></o:p></span></b></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">To read a group from a message, we supply the tag of the group field and the index of the group:<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">var sidesGrp1 = new QuickFix.FIX44.TradeCaptureReport.NoSidesGroup();<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">sidesGrp1 = tcr.GetGroup(1, Tags.NoSides);<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">var sidesGrp2 = new QuickFix.FIX44.TradeCaptureReport.NoSidesGroup();<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">sidesGrp2 = tcr.GetGroup(2, Tags.NoSides);<o:p></o:p></span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">Group indexes start at </span><span style="font-size:10.0pt;font-family:"Courier New"">1</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">. <o:p></o:p></span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">To iterate the groups, we use a </span><span style="font-size:10.0pt;font-family:"Courier New"">for</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> loop with the value of the group field:<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">var noSidesGrp = new QuickFix.FIX44.TradeCaptureReport.NoSidesGroup();<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">for(int grpIndex = 1; grpIndex<= message.GetInt(Tags.NoSides); grpIndex += 1)<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">{<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> noSidesGrp = message.GetGroup(grpIndex, Tags.NoSides);<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">}<o:p></o:p></span></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">I will be very thankful to you.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">Thanks & Regards,</span><b><span lang="EN-IN" style="font-family:"Century Gothic","sans-serif";color:#1F497D"><o:p></o:p></span></b></p><p class="MsoNormal"><b><span lang="EN-IN" style="font-family:"Century Gothic","sans-serif";color:#0F243E">Nirjhar Jain</span></b><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#0F243E"><o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-IN" style="font-size:8.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">Software Engineer<o:p></o:p></span></p><p class="MsoNormal">Mob: +919717976519<o:p></o:p></p></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Quickfixn mailing list</span><br><span><a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a></span><br><span><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a></span><br></div></blockquote></div></body></html>