I am working on an application using QuickFIX for .NET (ver 1.7). Due to the large amount of custom fields defined in our counterparty's data dictionary which are rejected by our FIX app, I decided to simply use their data dictionary.
However, they have a custom field type "TENOR" which caused exception so I followed the suggestion from this forum: QuickFIX counterparty DataDictionary gieves invalid type exception
and replaced TENOR type with STRING like this:
<field number="12345" name="tenor" type="STRING"/>
It was <field number="12345" name="tenor" type="TENOR"/>
But again when our app tried to log on to FIX host, it threw exception:"Object reference not set to an instance of an object."
Any idea how to fix this? Thank you.
[here are more stack trace from the exception:]
at QuickFix.DataDictionary.DataDictionary.parseMsgEl(XmlNode node, DDMap ddmap, Nullable`1 componentRequired)
at QuickFix.DataDictionary.DataDictionary.Load(Stream stream)
at QuickFix.SessionFactory.createDataDictionary(SessionID sessionID, Dictionary settings, String settingsKey, String beginString)
at QuickFix.SessionFactory.ProcessFixTDataDictionaries(SessionID sessionID, Dictionary settings, DataDictionaryProvider provider)
at QuickFix.SessionFactory.Create(SessionID sessionID, Dictionary settings)
at QuickFix.AbstractInitiator.CreateSession(SessionID sessionID, Dictionary dict)
at QuickFix.AbstractInitiator.Start()