简体   繁体   English

存在标签时,邮件被拒绝并显示“缺少必需标签”

[英]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. 拒绝消息说缺少必需的标签,并说缺少标签“ 55”。 Even though I've included the tag in my MDR message. 即使我在MDR邮件中包含了标签。 Any idea? 任何想法?

Your fields are out of order. 您的字段混乱。 55 (Symbol) should be inside of the 146 (NoRelatedSym) repeating group. 55(Symbol)应该在146(NoRelatedSym)重复组的内部。

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. 我看到您的身体字段按数字排序,这向我表明您使用的是QuickFIX风格之一,并且您弄乱了DataDictionary配置。

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. 如果我的假设是正确的,并且您没有遗漏任何内容,那么您应该会挺直。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM