The error you are getting is not related to the template id for a
template, but rather is related to the field you have named TemplateID
using this field instruction:
<uInt32 name="TemplateID" id="9999">
<copy dictionary="global" value="6" />
</uInt32>
If you truly mean this to be a template ID, you should be aware that
there is no need to declare it explicitly, the <template> element
defines the template id field automatically.
That being said, it appears that you are attempting to assign a value
for this field using this code:
QuickFAST::Messages::FieldIdentityCPtr field_TemplateID = new
QuickFAST::Messages::FieldIdentity("FAST TemplateID");
set_MDEntryTypes->addField(field_TemplateID,
QuickFAST::Messages::FieldUInt32::create(6));
This is unnecessary, of course, but if it were necessary it would work
better if the name in FieldIdentity ("FAST TemplateID") matched the name
in the XML ("TemplateID")
HTH,
Dale
--
Dale Wilson
Principal Software Engineer
Object Computing, Inc.
If the template declares group and a field with the same name in the
same scope that could certainly cause this problem. This is an invalid
template definition. However this error is not currently detected by
the template parser.
If, however, the string and the group are NOT in the same scope in the
XML file, then you need to be sure the fields are in the proper parent
segments in the message being decoded.
Dale