examples icon indicating copy to clipboard operation
examples copied to clipboard

Repeating group fields out of order

Open aozeahj opened this issue 3 years ago • 0 comments

Describe the bug

"Repeating group fields out of order (group 268: template is wrong or delimiter 269 not found: expected 2 groups, but found 1)"

To Reproduce First, I send a fix message with msgType = V to subscribe to the exchange rate data in both bid and offer directions

Then I successfully received the msgType = W message returned by the bank, and the message has data in both bid and offer directions, and the message is correct

However, when the program runs to "marketdatasnapshotfullrefresh.FromMessage(message)" and parses out the message data of msgType = W, and then calls "marketDataMsg.GetNoMDEntries() ", an error occurs, and the error message is as shown above.

Expected behavior Logically, there should be no error, and the exchange rate data in both bid and offer directions can be successfully obtained.

system information:

  • OS: Mac
  • Go version: Go 1.16.5
  • QF/Go Version v0.6.0

Additional context I read the ParseMessage() method of the message. In this method, the message data is directly parsed into the Body field, and the Body is a map data structure. It does not support repeating groups. Is it caused by this?

aozeahj avatar Nov 05 '22 10:11 aozeahj