{{Quickfixn}} Missing tags, tag order; symbol tag 55

olamide olatunji krazibit312 at gmail.com
Fri Dec 27 00:55:31 PST 2013


Hi Lopez,




*I assume I won't get a "RequiredFieldMissing" error if the XML file shows
required="N."  SoI'll check first only where 'required="Y"' in the
definition file(after making sure it is set to "Y" for all fields my
counterpartyrequires).*

I think you got it mixed up.

When a field is set to Required="Y" by your counter party then its safe for
you to just get the field without checking (If they didn't set it, then
your engine rejecting the message is a completely legal behavior (: ),
but on the other hand when they set the Required="N" meaning they can send
it or not depending on some condition on their side, then its mandatory for
you to check if it's set before getting the field.
Take for example if your counter party defines Tag 58 as optional for the
ExecutionReport (35=8)  and only sets it if your NewOrderSingle (35=D) was
rejected with the reason for rejection, If you try to get that field when
it's not set, your FIX engine would assume the message your received is
incomplete as a field you require is not set, thereby rejecting the
message, hence why you should always check Non-Required fields before
trying to get them.





On Fri, Dec 27, 2013 at 10:23 AM, Manuel Lopez <lopez.post at gmail.com> wrote:

> Ola,
> Thanks, I had missed that IsSetField method.  I assume I won't get a
> "RequiredFieldMissing" error if the XML file shows required="N."  So
> I'll check first only where 'required="Y"' in the definition file
> (after making sure it is set to "Y" for all fields my counterparty
> requires).
>
> "3.The best way to check for existence of a field is to use the
> msg.IsSetField(Field) method, and its recommended to do this for all fields
> marked as optional by your counter party, because if you try to get a field
> in a message that is not set by your counter party your FIX engine would
> rejects the message citing the reason as Unconditionally Require Field
> Missing."
>
> --Manuel
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131227/383e9884/attachment-0002.htm>


More information about the Quickfixn mailing list