{{Quickfixn}} custom field in header
Alex Firumiants
Alexf at erg.co.il
Tue Nov 11 04:33:23 PST 2014
Hi all
I have a problem with custom field in message header. As it is written in the counterparty spec the custom tag 6958 (ProductType) must be present after tag 35 (MsgType) both in Inbound and Outbound messages.
I read http://quickfixn.org/tutorial/custom-fields-groups-and-messages article and changed DD file.
This custom tag is a STRING, required Y, description "DB ABFX OPTION" - So I've added the following lines into DD FIX44.xml file :
In header section:
<header>
...
<field name="MsgType" required="Y" />
<field name="ProductType" required="Y" />
...
</header>
And in fields section
<fields>
...
<field number="6958" name="ProductType" type="STRING">
<value enum="0" description="DB ABFX OPTION" />
</field>
...
</fields>
The connection was established but logon was failed with a message Message 1 Rejected: Required tag missing (Field=6958)
event.current.log
20141111-12:24:22.691 : Created session
20141111-12:24:22.700 : Connecting to 160.83.33.198 on port 443
20141111-12:24:22.789 : Connection succeeded
20141111-12:24:22.825 : Session reset: ResetOnLogon
20141111-12:24:22.849 : Session reset: ResetSeqNumFlag
20141111-12:24:22.852 : Initiated logon request
20141111-12:24:23.748 : Message 1 Rejected: Required tag missing (Field=6958)
20141111-12:24:23.750 : Session FIX.4.4:UAT.ILSFXO.FIX->ABFX disconnecting: QuickFix.QuickFIXException: Tried to send a reject while not logged on
at QuickFix.Session.GenerateReject(Message message, SessionRejectReason reason, Int32 field)
at QuickFix.Session.Next(Message message)
at QuickFix.Session.Next(String msgStr)
at QuickFix.SocketInitiatorThread.ProcessStream()
at QuickFix.SocketInitiatorThread.Read()
messages.current.log - I don't see tag 6958 was sent
20141111-12:24:22.852 : 8=FIX.4.49=7935=A34=149=UAT.ILSFXO.FIX52=20141111-12:24:22.83156=ABFX98=0108=60141=Y10=077
20141111-12:24:23.729 : 8=FIX.4.49=7935=A34=149=ABFX52=20141111-12:24:21.18656=UAT.ILSFXO.FIX98=0108=60141=Y10=079
Did I miss something in DD file ?
Thanks
Alex Firumiants, Developer
Email: alexf at erg.co.il<mailto:alexf at erg.co.il>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20141111/c6e41472/attachment.htm>
More information about the Quickfixn
mailing list