I'm using the QuickFix .Net Dll to receive and process TradeCaptureReport messages. I have been sent a TradeCaptureReport message that contains a few custom fields.
I'm able to pull some values from the message using the various get*() methods, however, when I try to use the getGroup(...) method, I get a FieldNotFound Exception.
var msg = new QuickFix44.TradeCaptureReport();
msg.setString(@"8=FIX.4.49=52435=AE...");
var noSides = new QuickFix44.TradeCaptureReport.NoSides();
msg.getGroup(1, noSides);
Could this be caused by the existence of the custom fields? which coincidentally show up just before the repeating group I'm trying to read? If so how best to alter the Data Dictionary in the FIX44.xml file?
Also, in in the Message.GetGroup(uint num, Group g)
what does the parameter num mean? all examples found http://www.quickfixengine.org/quickfix/doc/html/repeating_groups.html imply it's nth instance of the group you're looking for, but if someone could confirm i'd appreciate it.
Edit Thanks for the comments/answers
I'm confused about the group... using has group returns false
var noSides = new QuickFix44.TradeCaptureReport.NoSides();
var p = msg.hasGroup(noSides);
but my message clearly has a 552 tag, and when i do
var q = msg.getNoSides();
It returns a QuickFix.NoSides with a value of 1.
Entire Message is as follows. 8=FIX.4.49=52435=AE49=ICE34=4052=20130213-14:44:57.37756=922257=42571=69487=0856=0828=0150=F17=1300946539=2570=N55=21914748=BRN FMH0013!22=8461=FXXXXX916=20130301917=2013033132=26.031=12.09018=269022=175=2013021360=20130213-14:44:57.3759413=0552=154=237=1300955611=170339730453=7448=someTrader447=D452=11448=SomePartyIdFirm447=D452=13448=9222447=D452=56448=8558447=D452=4448=SomePartyId1447=D452=51448=SomePartyId2447=D452=60448=U447=D452=5410=252
thanks.