Hobas Matius
Hobas Matius

Reputation: 61

Message rejected with "Required tag missing", when tag is present

I try to send Market Data Request and the log file gave me this..

20151027-03:08:46.038 : 8=FIX.4.2 | 9=122 | 35=V | 34=2 | 49=CLTEST | 52=20151027-03:08:45.991 | 56=SERVTEST | 55=CPOTR DEC15 | 146=1 | 207=EXCH | 262=MDRID | 263=1 | 264=1 | 265=0 | 267=9 | 269=C | 10=250
20151027-03:08:46.116 : 8=FIX.4.2 | 9=100 | 35=3 | 34=2 | 49=SERVTEST | 52=20151027-03:08:39.456 | 56=CLTEST | 45=2 | 58=Required tag missing | 371=55 | 372=V | 373=1 | 10=097

The reject message said there are required tag missing, and it says the tag "55" that missing. Even though I've included the tag in my MDR message. Any idea?

Upvotes: 0

Views: 5620

Answers (1)

Grant Birchmeier
Grant Birchmeier

Reputation: 18484

Your fields are out of order. 55 (Symbol) should be inside of the 146 (NoRelatedSym) repeating group.

I see that your body fields are sorted numerically, which indicates to me that you are using one of the QuickFIX flavors, and that you've messed up your DataDictionary config.

Make sure your config has these two lines:

UseDataDictionary=Y
DataDictionary=path/to/your/FIX42.xml

If my assumptions are correct and you didn't leave anything out, this should set you straight.

Upvotes: 1

Related Questions