Re: [Quickfix-users] ExecutionReports rejected for missing SecurityType. Incorrectly?
Brought to you by:
orenmnero
From: Steve T. <sto...@pe...> - 2006-11-10 18:16:54
|
Thank you Oren. This was in fact the cause of my problem. =20 Steve =20 =20 =20 -----Original Message----- From: Oren Miller [mailto:or...@qu...]=20 Sent: Friday, November 10, 2006 9:01 AM To: Steve Torrence Cc: qui...@li... Subject: Re: [Quickfix-users] ExecutionReports rejected for missing = SecurityType. Incorrectly? =20 Steve, =20 This is actually a very common question. QuickFIX sends a = "Conditionally Required Field Missing" BusinessMessageReject when a = FieldNotFound exception is thrown in the fromApp method. The get or = getField method throws this exception if the field you are trying to get = is not present. For this reason you should check that the SecurityType = field is actually in the message before pulling it out, otherwise the = message has no option but to throw an exception which propagates to the = session which must then reject the message. =20 --oren =20 On Nov 10, 2006, at 10:54 AM, Steve Torrence wrote: QuickFIX Documentation: HYPERLINK = "http://www.quickfixengine.org/quickfix/doc/html/index.html"http://www.qu= ickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: HYPERLINK = "http://www.quickfixengine.org/services.html"http://www.quickfixengine.or= g/services.html =20 I=92m using QuickFix in a C# application that processes ExecutionReports = sent to us by another firm. =20 =20 In testing, ExecutionReports involving stocks are getting rejected by = QuickFix (on our end) with the message =93Conditionally Required Field = Missing (167)=94. The rejected ExecutionReport messages do omit the = SecurityType field. (ExecutionReports involving options, which do = contain SecurityType, get through fine.) =20 Omitting SecurityType for stocks does not seem to be an error, since the = spec says of the SecurityType field in ExecutionReport =93Must be = specified if a Future or Option=85=94. In any case, I don=92t have = control over what the other firm sends us. =20 An example of a rejected ExecutionReport (some data values changed to = protect the guilty): =20 8=3DFIX.4.29=3D29535=3D849=3DTHEM56=3DUS128=3DXXXX34=3D2850=3Du72653352=3D= 20061110-14:30:01 37=3DABC0000111=3D61109=3D48W9120976=3DXXXX17=3D1234567890 20=3D0150=3D139=3D11=3DXXXX55=3DXXXX54=3D538=3D50040=3D244=3D4.74000059=3D= 047=3DA32=3D10031=3D4.74000030=3DC29=3D1 151=3D40014=3D1006=3D4.740060=3D20061110-09:30:00113=3DN439=3DXXXX10=3D11= 7 =20 And the corresponding rejection: =20 8=3DFIX.4.29=3D12035=3Dj34=3D3549=3DUS52=3D20061110-14:30:01.36756=3DTHEM= 45=3D28 58=3DConditionally Required Field Missing (167)372=3D8380=3D510=3D151 =20 =20 Have I diagnosed the issue correctly? =20 What do I need to do to persuade QuickFix not to reject this message? =20 =20 Thank you for any assistance you can give me. =20 =20 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.1/527 - Release Date: = 11/9/2006 -------------------------------------------------------------------------= Using Tomcat but need to do more? Need to support web services, = security? Get stuff done quickly with pre-integrated technology to make your job = easier Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo HYPERLINK = "http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642_______________________________________________"http://sel.as-us.fa= lkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642____________= ___________________________________ Quickfix-users mailing list HYPERLINK = "mailto:Qui...@li..."Qui...@li...urcef= orge.net HYPERLINK = "https://lists.sourceforge.net/lists/listinfo/quickfix-users"https://list= s.sourceforge.net/lists/listinfo/quickfix-users =20 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.1/527 - Release Date: = 11/9/2006 --=20 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.1/527 - Release Date: = 11/9/2006 =20 |