[This message was posted by douglas young of RTTT <[email protected]> to the "FAST Protocol" discussion forum at http://fixprotocol.org/discuss/46. You can reply to it on-line at http://fixprotocol.org/discuss/read/1b9bf0b7 - PLEASE DO NOT REPLY BY MAIL.]
If a constant is outside of "sequence" it will allow you to send this is not inconsistent. Plus at time when creating the data message you don't know which field is constant. There is the templage I using: ( I have to replace <> with () this forums does not take XML) Message give error: 1128=8 35=R 49=CME 34=3 146=1 55=[N/A] 38=100 22=8 Note: 55 and 22 are constant inside of sequence. Message ok: 1128=8 35=R 49=CME 34=3 146=1 38=100 Note: Field 35 and 49 are constant out side of sequence. (template name="QuoteRequest" id="47" dictionary="47" xmlns="http://www.fixprotocol.org/ns/fast/td/1.1") (string name="ApplVerID" id="1128") (constant value="8" /) (/string) (string name="MessageType" id="35") (constant value="R" /) (/string) (string name="SenderCompID" id="49") (constant value="CME" /) (/string) (uInt32 name="MsgSeqNum" id="34" /) (sequence name="RelatedSym") (length name="NoRelatedSym" id="146" /) (string name="Symbol" id="55") (constant value="[N/A]" /) (/string) (uInt64 name="OrderQty" id="38" presence="optional" /) (uInt32 name="SecurityIDSource" id="22") (constant value="8" /) (/uInt32) (/sequence) (/template) > Why would you send field values in a message if the template defines > them as constant? The FAST 1.1 spec says "The value of a constant field > is never transferred.". Sending it implies that values might be > different from the template and even different across messages. This is > inconsistent with the definition of the constant operator. > > > I try to encode a message and it keep give the error. The problem is > > came from "constant" in side of a "sequence". (146 is sequence length, > > 55 and 8 are constant in side of sequence) > > > > "Error occurred on line #1: Parsed 3 groups in sequence when 1 were > > expected. [line: 1128=8 35=R 49=CME 34=3 146=1 55=[N/A] 38=100 22=8]: > > Parsed 3 groups in sequence when 1 were expected." > > > > Message give error: > > 1128=8 35=R 49=CME 34=3 146=1 55=[N/A] 38=100 22=8 > > > > Message ok: 1128=8 35=R 49=CME 34=3 146=1 38=100 > > > > > > http://www.fixprotocol.org/ns/fast/td/1.1"> [You can unsubscribe from this discussion group by sending a message to mailto:[email protected]] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Financial Information eXchange" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/FIX-Protocol?hl=en -~----------~----~----~----~------~----~------~--~---
