{{Quickfixn}} How to prevent rejection of message missing an *optional* field.
Mike Gatny
mgatny at connamara.com
Fri Jan 10 20:48:34 PST 2014
On Fri, Jan 10, 2014 at 6:10 PM, Manuel Lopez <lopez.post at gmail.com> wrote:
> 20140110-22:28:07.376 : 8=FIX.4.4 9=133 35=j 34=171 49=us
> 52=20140110-22:28:07 56=cparty 142=fooloc 45=223 58=Conditionally
> Required Field Missing 372=8 380=5 10=028
>
This question comes up a lot. The "Conditionally Required Field Missing"
error means that:
1. you tried to do a Get on a field that was not present in the message
2. therefore a FieldNotFound exception was thrown
3. you did not catch the exception
4. therefore quickfix/n handled it for you by sending a reject (35=j)
So: wrap your code that gets conditionally required fields (like LastPx in
Execution Reports) in a try-catch, and handle FieldNotFound.
--
Mike Gatny
Connamara Systems, LLC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20140110/85a21030/attachment-0002.htm>
More information about the Quickfixn
mailing list