<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">You need to read the docs:</div><div class="gmail_default"><font color="#000000"><a href="http://quickfixn.org/tutorial/repeating-groups.html">http://quickfixn.org/tutorial/repeating-groups.html</a></font></div><div class="gmail_default"><br></div><div class="gmail_default"><font color="#000000">In your code, you are actually only setting one Type and Value; each assignment clobbers the previous one.  You end up sending a message with NoStipulations=3 but only one Type/Value.</font></div><div class="gmail_default"><br></div><div class="gmail_default">You need to create StipulationGroup objects and add those.  Do NOT manually set NoStipulations!  Read the doc link above and I think you'll see how it works.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 24, 2017 at 4:24 PM, Nepali, Mahendra (CWM-NR) <span dir="ltr"><<a href="mailto:mahendra.nepali@rbccm.com" target="_blank">mahendra.nepali@rbccm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<font face="Arial" size="2"><span style="font-size:10pt">
<div>Hi,</div>
<div>I am trying to set stipulations in a quote message I am working on using quickfix n. The following is the snippet. But in the fix only one stipulation Type is set and I get a reject as the number of stipulation does not match the items I am sending in
the fix. Please let me know what is it I am missing here.</div>
<div><font face="Calibri" size="2"><span style="font-size:11pt"> </span></font></div>
<div><font face="Consolas">            <font color="blue">this</font>.Message.SetField(<font color="blue">new</font> <font color="#2B91AF">NoS<wbr>tipulations</font>(3));</font></div>
<div><font face="Consolas">            <font color="blue">this</font>.Message.<wbr>SetField(<font color="blue">new</font> <font color="#2B91AF">StipulationType</font>(<font color="#A31515">"<wbr>SUGGSALESCR"</font>));</font></div>
<div><font face="Consolas">            <font color="blue">this</font>.Message.<wbr>SetField(<font color="blue">new</font> <font color="#2B91AF">StipulationValue</font>(<wbr>entity.<wbr>BondDeskRetailSalesCredits.<wbr>ToString()));</font></div>
<div><font face="Consolas">            <font color="blue">this</font>.Message.<wbr>SetField(<font color="blue">new</font> <font color="#2B91AF">StipulationType</font>(<font color="#A31515">"<wbr>MINSALESCR"</font>));</font></div>
<div><font face="Consolas">            <font color="blue">this</font>.Message.<wbr>SetField(<font color="blue">new</font> <font color="#2B91AF">StipulationValue</font>(<wbr>entity.<wbr>BondDeskRetailSalesCreditsMin.<wbr>ToString()));</font></div>
<div><font face="Consolas">            <font color="blue">this</font>.Message.<wbr>SetField(<font color="blue">new</font> <font color="#2B91AF">StipulationType</font>(<font color="#A31515">"<wbr>MAXSALESCR"</font>));</font></div>
<div><font face="Consolas">            <font color="blue">this</font>.Message.<wbr>SetField(<font color="blue">new</font> <font color="#2B91AF">StipulationValue</font>(<wbr>entity.<wbr>BondDeskRetailSalesCreditsMax.<wbr>ToString()));</font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt">Regards</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt">Mahendra</span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt"> </span></font></div>
</span></font>
<p><font>______________________________<wbr>__________</font></p>
<p><font>This E-Mail (including any attachments) may contain privileged or confidential information.  It is intended only for the addressee(s) indicated above.</font></p>
<p><font>The sender does not waive any of its rights, privileges or other protections respecting this information.  </font></p>
<p><font>Any distribution, copying or other use of this E-Mail or the information it contains, by other than an intended recipient, is not sanctioned and is prohibited.</font></p>
<p><font>If you received this E-Mail in error, please delete it and advise the sender (by return E-Mail or otherwise) immediately. </font></p>
<p><font>This E-Mail (including any attachments) has been scanned for viruses. </font></p>
<p><font>It is believed to be free of any virus or other defect that might affect any computer system into which it is received and opened. </font></p>
<p><font>However, it is the responsibility of the recipient to ensure that it is virus free. </font></p>
<p><font>The sender accepts no responsibility for any loss or damage arising in any way from its use.</font></p>
<p><font>E-Mail received by or sent from RBC Capital Markets is subject to review by Supervisory personnel. </font></p>
<p><font>Such communications are retained and may be produced to regulatory authorities or others with legal rights to the information.</font></p>
<p><font>IRS CIRCULAR 230 NOTICE:  TO COMPLY WITH U.S. TREASURY REGULATIONS, WE ADVISE YOU THAT ANY U.S. FEDERAL TAX ADVICE INCLUDED IN THIS COMMUNICATION IS NOT INTENDED OR WRITTEN TO BE USED, AND CANNOT BE USED, TO AVOID ANY U.S. FEDERAL TAX PENALTIES OR TO PROMOTE, MARKET, OR RECOMMEND TO ANOTHER PARTY ANY TRANSACTION OR MATTER.</font></p></div>

<br>______________________________<wbr>_________________<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/<wbr>listinfo.cgi/quickfixn-<wbr>quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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>