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

Manuel Lopez lopez.post at gmail.com
Fri Dec 27 15:59:05 PST 2013


Ola,
p.s. I'll be using lines like this to avoid raising an error, using
the specific strongly typed IsSet() method for each field:
TransactTime_fx60 =
msg.IsSetTransactTime() ? msg.TransactTime.getValue(): (DateTime?) null

If anyone thinks that is not the best way, please let me know.
(TransactTime_fx60 corresponds to a nullable datetime field in my
database.)

Thanks,
Manuel

On Fri, Dec 27, 2013 at 3: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



More information about the Quickfixn mailing list