<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000">DO NOT set UseDataDictionary to "N" !!! It won't fix your problem, and it'll break any repeating groups also.</div><div class="gmail_default" style="font-size:small;color:#000000">
<br></div><div class="gmail_default" style="font-size:small;color:#000000">The engine is operating correctly. The problem is your code. I'm guessing you're calling "message.LastPx" (or "GetField(31)" or whatever) without actually checking that LastPx is in the message.</div>
<div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">If you attempt to extract a field and it's not set, the engine assumes that, since you expected the field to be there, it was conditionally required. (Not *always* required, but conditionally required, which means it's only required in certain circumstances that the engine can't know.)</div>
<div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">That is today, the engine is trusting that *your* code is correct, and that the other party has violated *your* requirement.</div>
<div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">It appears that you want 31 to be completely optional. In that case, you must check to see if it's present before you extract it, e.g.</div>
<div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000"> if(message.IsSetLastPx)</div><div class="gmail_default" style="font-size:small;color:#000000">
lastPx = message.LastPx.Value; // or whatever</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">(Pardon me if I didn't get the function names exactly right.)</div>
<div class="gmail_default" style="font-size:small;color:#000000"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 10, 2014 at 6:21 PM, Manuel Lopez <span dir="ltr"><<a href="mailto:lopez.post@gmail.com" target="_blank">lopez.post@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think I'll set UseDataDictionary to "N." <div class="gmail_extra"><br></div></div>
<br>_______________________________________________<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" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font><font color="#3333ff"><br>
</font></font></div><div><font><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><b>Made-To-Measure Trading Solutions.</b></font></div><div><font>Exactly what you need. No more. No less.</font><font><b><font color="#3333ff"><br></font></b></font></div><div><font><a href="http://connamara.com" target="_blank">http://connamara.com</a><br>
</font></div>
</div>