last day (15 days later) » 

8:14 PM
0
Q: QuickFix error: 58=Conditionally Required Field Missing (268)

IvanSorry about the FIX formatting - not sure how to paste here a more readable version. This is the server config file [DEFAULT] ConnectionType=acceptor SocketAcceptPort=5001 SocketReuseAddress=Y StartTime=00:00:00 EndTime=00:00:00 FileLogPath=log FileStorePath=store [SESSION] BeginString=FIX.4.4 ...

 
You mentioned that you're not sure how to paste the FIX messages in a more readable format; my suggestion is to use any decent text editor to replace the field delimiters (SOH characters) with '^' or '|'.
 
There is a nifty ed or sed command that does it, but I forget what it is.
 
I added delimiters, hopefully preserving the actual fields in the message.
 
Is there a way to tell QF to use '^' or '|' instead of soh swhen outputting FIX messages to the log file?
 
For logs? Not as far as I know.
 
8:14 PM
This is all a bit strange, since AFAIK, all FIX engines add the NoMDEntries automatically?
Check now I actually used the StackOverflow suggestion!
hello hunch
 
I'm not sure why QF is complaining about field NoMDEntries missing since it looks like 268 is specified in the message.
And hi!
 
The only thing that occurs to me is that there are user defined tags and that is confusing it
 
I would think that it would complain about invalid fields though if it were confused about them.
 
void MyApplication::sendXMessages() //send the X messages to all active sessions.
{
std::ofstream out("send.txt");
FIX44::MarketDataIncrementalRefresh message = FIX44::MarketDataIncrementalRefresh();
FIX44::MarketDataIncrementalRefresh::NoMDEntries group;

long count = sizeof(symbols) / (sizeof(symbols[0]) );
double rnd = count*rand() / (RAND_MAX + 1.0);
FIX::Symbol symbol(symbols[(long)rnd]);
rnd = 3 * rand() / (RAND_MAX + 1.0);
FIX::MDUpdateAction action(rnd < 2.0 ? (rnd < 1 ? '0' : '1') : '2');//0=new,1=update,2=delete
 
That looks proper to me.
 
8:18 PM
I just build QF from source too, so it is the latest and greatest
ugh
annoying
:(
 
Yeah, the field is obviously specified in the message.
 
maybe it is a bug?
 
You're creating and setting the group.
I suppose it could be.
 
it seems as if the reader that verifies messages (the finite state machine) is flawed
hard to believe since QF is ancient and well tested
 
Are you able to debug and step into the QF code itself?
 
8:20 PM
well, I have the source, I have to build debug libraries etc
Maybe I should send it to the QF people
there is probably something really dumb that I am missing
 
Might be, yeah.
 
also sometimes the error TXT is the bug
in other words, there is something wrong, but misreporting it
 
What does the entry for MarketDataIncrementalRefresh look like in your FIX44.xml file?
 
let me get that
 
It's weird that the reject says it's a conditionally required field.
It should always be required on 35=X.
 
8:23 PM
<message name='MarketDataIncrementalRefresh' msgcat='app' msgtype='X'>
<field name='MDReqID' required='N' />
<component name='MDIncGrp' required='Y' />
<field name='ApplQueueDepth' required='N' />
<field name='ApplQueueResolution' required='N' />
</message>
maybe the spec is wrong. That would be funny
I just used what was inside the QF source
maybe I need to add fields for userdefined tags
I wonder if this is a sequence number problem
 
That message definition looks a lot different from what I've seen before.
Might be a QF C++ vs. QuickFIX/n thing, though.
 
ah you are used to the .net version?
I think the spec should be identical
 
Yeah, I've used both, but most recently the .net one.
 
I just cleared out all the stuff in log and store on both directories so that it would be forced to use new seq #s. Same problem
what does your Incremental section say?
maybe I can use that one
 
Just for comparison, this is the first part of the MarketDataIncrementalRefresh definition:
<message name="MarketDataIncrementalRefresh" msgtype="X" msgcat="app">
<field name="MDReqID" required="N" />
<group name="NoMDEntries" required="Y">
<field name="MDUpdateAction" required="Y" />
<field name="DeleteReason" required="N" />
<field name="MDEntryType" required="N" />
<field name="MDEntryID" required="N" />
<field name="MDEntryRefID" required="N" />
<component name="Instrument" required="N" />
<group name="NoUnderlyings" required="N">
<component name="UnderlyingInstrument" required="N" />
The full thing is this:
<message name="MarketDataIncrementalRefresh" msgtype="X" msgcat="app">
<field name="MDReqID" required="N" />
<group name="NoMDEntries" required="Y">
<field name="MDUpdateAction" required="Y" />
<field name="DeleteReason" required="N" />
<field name="MDEntryType" required="N" />
<field name="MDEntryID" required="N" />
<field name="MDEntryRefID" required="N" />
<component name="Instrument" required="N" />
<group name="NoUnderlyings" required="N">
<component name="UnderlyingInstrument" required="N" />
There may be differences that make it unusable, though.
 
8:29 PM
Ill try it can't hurt
back up the orig
 
Ah, I see that the C++ version does define MDIncGrp is a separate <component>.
As, rather.
 
?
 
The XML definition you pasted for MarketDataIncrementalRefresh.
<message name='MarketDataIncrementalRefresh' msgcat='app' msgtype='X'>
<field name='MDReqID' required='N' />
<component name='MDIncGrp' required='Y' />
<field name='ApplQueueDepth' required='N' />
<field name='ApplQueueResolution' required='N' />
</message>
 
ah
 
I don't know if it makes sense, but you might have to create an MDIncGrp.
 
8:33 PM
can you type it in and paste it here?
just the one line and tell me where to stick it
 
Hmm...
I don't think there's an MDIncGrp class.
 
we have a mystery
 
Well, MDIncGrp is defined in the XML file.
 
right it is in what I pasted
 
<component name='MDIncGrp'>
<group name='NoMDEntries' required='Y'>
<field name='MDUpdateAction' required='Y' />
<field name='DeleteReason' required='N' />
<field name='MDEntryType' required='N' />
<field name='MDEntryID' required='N' />
<field name='MDEntryRefID' required='N' />
<component name='Instrument' required='N' />
<component name='UndInstrmtGrp' required='N' />
<component name='InstrmtLegGrp' required='N' />
<field name='FinancialStatus' required='N' />
<field name='CorporateAction' required='N' />
 
8:37 PM
I wonder if I can use the FIX8 spec
just to test
 
Like you said, can't hurt to test some stuff.
 
I just tried and same problem
I don't think it is the XML
 
So you'
re running both the client and the server?
 
yeah, but you know what
this looks slightly different
let me post the FIX
 
OK.
 
8:42 PM
OUT: 8=FIX.4.49=19835=X34=3949=EXECUTOR52=20141114-20:42:36.12456=CLIENT1268=1279=0269=0278=156628881955=bond2270=100.386541463435271=0110=06350=06351=06360=0.04107879376970236361=0.00054085482843220210=170

IN: 8=FIX.4.49=12335=j34=4649=CLIENT152=20141114-20:42:36.12456=EXECUTOR45=3958=Conditionally Required Field Missing (268)372=X380=510=145
is that different or am I imagining things?
actually the same
just a different symbok
bond vs bond1
 
It looks like the symbol is inside the repeating group this time.
 
hmmm
well I am much further today than I was yesterday! At least client and server are talking to each other :-)
 
That's progress!
 
huge
you know what is a clue
 
What's that?
 
8:46 PM
that both client and server are complaining about the same thig
thing
although it might be reused code in both cases
underneath
in QF I mean
 
Yeah.
 
I will post this to the QF forum maybe someone there can spot it
thanks a million hunch
 
No problem, sorry I wasn't able to help you solve it.
 
You are a officer and gentleman - I appreciate your time.
 
Some problems are tough to diagnose without sitting in front of the code and working through things.
 
8:48 PM
I know
thanks. Bye!
 
Best of luck!
 
TY
 

last day (15 days later) »