<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=utf-8">
<meta name="x_Generator" content="Microsoft Word 15 (filtered medium)">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:x_link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
.x_MsoChpDefault
        {}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="blue" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal"></p>
<p class="x_MsoNormal">I solved this issue be changing the type of the AvgPX tag<6> to a string in  the DD xml file
</p>
<p class="x_MsoNormal">As below</p>
<p class="x_MsoNormal"><field number="6" name="AvgPx" type="STRING"/></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">As for tag 380</p>
<p class="x_MsoNormal">I changed to the below  as to accept the about 500 reasons and doesn’t give me the error out of range kindly correct me if I have done something wrong or may system works wrong or sends exceptions</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">  <field number="380" name="BusinessRejectReason" type="INT"/></p>
<p class="x_MsoNormal">Instead of </p>
<p class="x_MsoNormal">    <field number="380" name="BusinessRejectReason" type="INT"></p>
<p class="x_MsoNormal">      <value enum="0" description="OTHER"/></p>
<p class="x_MsoNormal">      <value enum="1" description="UNKOWN_ID"/></p>
<p class="x_MsoNormal">      <value enum="2" description="UNKNOWN_SECURITY"/></p>
<p class="x_MsoNormal">      <value enum="3" description="UNSUPPORTED_MESSAGE_TYPE"/></p>
<p class="x_MsoNormal">      <value enum="4" description="APPLICATION_NOT_AVAILABLE"/></p>
<p class="x_MsoNormal">      <value enum="5" description="CONDITIONALLY_REQUIRED_FIELD_MISSING"/></p>
<p class="x_MsoNormal">    </field></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">
Mail</a> for Windows 10</p>
<p class="x_MsoNormal"> </p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Quickfixn <quickfixn-bounces@lists.quickfixn.com> on behalf of quickfixn-request@lists.quickfixn.com <quickfixn-request@lists.quickfixn.com><br>
<b>Sent:</b> Tuesday, September 18, 2018 7:09:21 PM<br>
<b>To:</b> quickfixn@lists.quickfixn.com<br>
<b>Subject:</b> Quickfixn Digest, Vol 83, Issue 10</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">Send Quickfixn mailing list submissions to<br>
        quickfixn@lists.quickfixn.com<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com">
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
or, via email, send a message with subject or body 'help' to<br>
        quickfixn-request@lists.quickfixn.com<br>
<br>
You can reach the person managing the list at<br>
        quickfixn-owner@lists.quickfixn.com<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Quickfixn digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re:  58=Incorrect data format for value 371=6 (Grant Birchmeier)<br>
   2. Re:  Quickfixn Fix 4.2 How to Send & Receive messages to<br>
      different TargetCompID in same session (Mohammed Quwaider)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 18 Sep 2018 09:37:30 -0500<br>
From: Grant Birchmeier <gbirchmeier@connamara.com><br>
To: "Mailing list for QuickFIX/n" <quickfixn@lists.quickfixn.com><br>
Subject: Re: {{Quickfixn}} 58=Incorrect data format for value 371=6<br>
Message-ID:<br>
        <CAMq4opN67m8BX21nRtV062t=HOM48=SiLgJ0ux-QGsWmnbU+Ng@mail.gmail.com><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Please do not send screenshots in the future.  It's not difficult to<br>
copy/paste messages from your terminal into an email.  Also, I'd really<br>
like to see the messages as they are recorded in your message log, not from<br>
your console output or event log.  In my experience, only the raw FIX<br>
message log can truly be trusted.<br>
<br>
I don't see anything obviously wrong here.  Either you are not using the<br>
config that you think you are, or there is something else happening that I<br>
cannot see from what you have provided.<br>
<br>
<br>
<br>
<br>
On Thu, Sep 13, 2018 at 5:27 AM, Mohammed Quwaider <momo505@msn.com> wrote:<br>
<br>
> Kindly check the screen shot of the Fix message on the Incorrect data<br>
> format for value 371=6 , also check the other error for Out of range for<br>
> Tag number 380 out of range<br>
><br>
><br>
><br>
><br>
><br>
Sent from Mail <<a href="https://go.microsoft.com/fwlink/?LinkId=550986">https://go.microsoft.com/fwlink/?LinkId=550986</a>> for Windows<br>
> 10<br>
><br>
><br>
> ------------------------------<br>
> *From:* Mohammed Quwaider <momo505@msn.com><br>
> *Sent:* Thursday, September 13, 2018 12:36:20 AM<br>
> *To:* quickfixn@lists.quickfixn.com<br>
> *Subject:* RE: {{Quickfixn}} 58=Incorrect data format for value 371=6<br>
><br>
><br>
> I?m currently working on the Source Code version downloaded from<br>
> <a href="https://github.com/connamara/quickfixn">https://github.com/connamara/quickfixn</a><br>
><br>
> I will send you tomorrow the fix message and I connect to the server.<br>
><br>
><br>
><br>
> Sent from Mail <<a href="https://go.microsoft.com/fwlink/?LinkId=550986">https://go.microsoft.com/fwlink/?LinkId=550986</a>> for<br>
> Windows 10<br>
><br>
><br>
> ------------------------------<br>
> *From:* Quickfixn <quickfixn-bounces@lists.quickfixn.com> on behalf of<br>
> quickfixn-request@lists.quickfixn.com <quickfixn-request@lists.quick<br>
> fixn.com><br>
> *Sent:* Wednesday, September 12, 2018 11:34:17 PM<br>
> *To:* quickfixn@lists.quickfixn.com<br>
> *Subject:* Quickfixn Digest, Vol 83, Issue 4<br>
><br>
> Send Quickfixn mailing list submissions to<br>
>         quickfixn@lists.quickfixn.com<br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
>         <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com">
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
> or, via email, send a message with subject or body 'help' to<br>
>         quickfixn-request@lists.quickfixn.com<br>
><br>
> You can reach the person managing the list at<br>
>         quickfixn-owner@lists.quickfixn.com<br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of Quickfixn digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
>    1.  58=Incorrect data format for value 371=6 (Mohammed Quwaider)<br>
>    2. Re:  58=Incorrect data format for value 371=6 (Grant Birchmeier)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Wed, 12 Sep 2018 08:12:37 +0000<br>
> From: Mohammed Quwaider <momo505@msn.com><br>
> To: "quickfixn@lists.quickfixn.com" <quickfixn@lists.quickfixn.com><br>
> Subject: {{Quickfixn}} 58=Incorrect data format for value 371=6<br>
> Message-ID:<br>
>         <SN2PR03MB225622F2A9859BCD7AFF1DC3F51B0@SN2PR03MB2256.namprd<br>
> 03.prod.outlook.com><br>
><br>
> Content-Type: text/plain; charset="windows-1252"<br>
><br>
><br>
><br>
> I have the ?58=Incorrect data format for value? when retrieving AvgPx null<br>
> valu, How can I ignore null or empty values in the QuickFix<br>
> I did in the below in the config file<br>
><br>
> 58=Incorrect data format for value371=6<br>
><br>
> ValidateFieldsHaveValues=N<br>
><br>
> [cid:image001.png@01D44A89.46D89100]<br>
><br>
><br>
> Sent from Mail<<a href="https://go.microsoft.com/fwlink/?LinkId=550986">https://go.microsoft.com/fwlink/?LinkId=550986</a>> for<br>
> Windows 10<br>
><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<a href=""></a>http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.co<br>
> m/attachments/20180912/6ea31555/attachment-0001.html><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: F8FC6A3825BE4890A1A60E4DBAFF8B06.png<br>
> Type: image/png<br>
> Size: 2073 bytes<br>
> Desc: F8FC6A3825BE4890A1A60E4DBAFF8B06.png<br>
> URL: <<a href=""></a>http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.co<br>
> m/attachments/20180912/6ea31555/attachment-0001.png><br>
><br>
> ------------------------------<br>
><br>
> Message: 2<br>
> Date: Wed, 12 Sep 2018 09:56:32 -0500<br>
> From: Grant Birchmeier <gbirchmeier@connamara.com><br>
> To: "Mailing list for QuickFIX/n" <quickfixn@lists.quickfixn.com><br>
> Subject: Re: {{Quickfixn}} 58=Incorrect data format for value 371=6<br>
> Message-ID:<br>
>         <CAMq4opN0UYczCB_HQJZWSv+rctr3diiTtLFOgBLTWTPkR7B-+A@mail.gm<br>
> ail.com><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> That setting should work.  What version of QF/n are you using?  (Are you<br>
> using the NuGet package?  It's not official, and is a bit behind the<br>
> current source.)<br>
><br>
> Please show me the actual fix message, and the associated reject message.<br>
> (Don't forget to remove any secret or proprietary info first)<br>
><br>
> On Wed, Sep 12, 2018 at 3:12 AM, Mohammed Quwaider <momo505@msn.com><br>
> wrote:<br>
><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > I have the ?58=Incorrect data format for value? when retrieving AvgPx<br>
> null<br>
> > valu, How can I ignore null or empty values in the QuickFix<br>
> ><br>
> > I did in the below in the config file<br>
> ><br>
> ><br>
> ><br>
> > 58=Incorrect data format for value371=6<br>
> ><br>
> ><br>
> ><br>
> > ValidateFieldsHaveValues=N<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > Sent from Mail <<a href="https://go.microsoft.com/fwlink/?LinkId=550986">https://go.microsoft.com/fwlink/?LinkId=550986</a>> for<br>
> > Windows 10<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Quickfixn mailing list<br>
> > Quickfixn@lists.quickfixn.com<br>
> > <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
> ><br>
> ><br>
><br>
><br>
> --<br>
> Grant Birchmeier<br>
> *Connamara Systems, LLC*<br>
> *Made-To-Measure Trading Solutions.*<br>
> Exactly what you need. No more. No less.<br>
> <a href="http://connamara.com">http://connamara.com</a><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<a href=""></a>http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.co<br>
> m/attachments/20180912/b44e1ec9/attachment-0001.html><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: F8FC6A3825BE4890A1A60E4DBAFF8B06.png<br>
> Type: image/png<br>
> Size: 2073 bytes<br>
> Desc: not available<br>
> URL: <<a href=""></a>http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.co<br>
> m/attachments/20180912/b44e1ec9/attachment-0001.png><br>
><br>
> ------------------------------<br>
><br>
> Subject: Digest Footer<br>
><br>
> _______________________________________________<br>
> Quickfixn mailing list<br>
> Quickfixn@lists.quickfixn.com<br>
> <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
><br>
><br>
> ------------------------------<br>
><br>
> End of Quickfixn Digest, Vol 83, Issue 4<br>
> ****************************************<br>
><br>
> _______________________________________________<br>
> Quickfixn mailing list<br>
> Quickfixn@lists.quickfixn.com<br>
> <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
><br>
><br>
<br>
<br>
-- <br>
Grant Birchmeier<br>
*Connamara Systems, LLC*<br>
*Made-To-Measure Trading Solutions.*<br>
Exactly what you need. No more. No less.<br>
<a href="http://connamara.com">http://connamara.com</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180918/44fd28fa/attachment-0001.html">http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180918/44fd28fa/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 18 Sep 2018 16:09:18 +0000<br>
From: Mohammed Quwaider <momo505@msn.com><br>
To: "christoph.john@macd.com" <christoph.john@macd.com>, "Mailing list<br>
        for QuickFIX/n" <quickfixn@lists.quickfixn.com><br>
Subject: Re: {{Quickfixn}} Quickfixn Fix 4.2 How to Send & Receive<br>
        messages to different TargetCompID in same session<br>
Message-ID:<br>
        <SN6PR04MB48784B6977EE4EB401E94789F51D0@SN6PR04MB4878.namprd04.prod.outlook.com><br>
        <br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Thank Christoph,<br>
Kindly note that the counterparty uses Cap-fix engine which requires password when logon, and after successful logon they request to reset the sequence number and change the TargetSubID to something different also they request sending tags  <D> , <G> , <F>
 with another ID for SenderCompID to be 1 instead 0  also they needs the tags fields for <D> , <G> , <F> to be sorted in specific sort<br>
<br>
Sent from Mail<<a href="https://go.microsoft.com/fwlink/?LinkId=550986">https://go.microsoft.com/fwlink/?LinkId=550986</a>> for Windows 10<br>
<br>
________________________________<br>
From: Christoph John <christoph.john@macd.com><br>
Sent: Tuesday, September 18, 2018 5:32:56 PM<br>
To: Mailing list for QuickFIX/n; Mohammed Quwaider<br>
Subject: Re: {{Quickfixn}} Quickfixn Fix 4.2 How to Send & Receive messages to different TargetCompID in same session<br>
<br>
Are you sure that they require you to address different Target*Comp*IDs in one session? That would be somewhat illegal in a FIX context since a FIX session is uniquely described by FIX version + SenderCompID + TargetCompID. So sending a message with a different
 TargetCompID to an already established session will not work.<br>
<br>
Maybe they require you to address a different Target*Sub*ID?!<br>
<br>
Otherwise it would make no sense.<br>
<br>
Chris.<br>
<br>
On 18/09/18 12:32, Mohammed Quwaider wrote:<br>
<br>
<br>
How to send & receive Fix messages to different TargetCompID in same session, The Exchange I connect to give one session only and wants send Fix orders in different TargetCompID also receiving execution report tag <8> in that same different TargetCompID other
 fixed messages uses the original in the configuration file (TargetCompID=0)<br>
<br>
Can you give quick solution how to solve this issue.<br>
<br>
<br>
<br>
Config file<br>
<br>
[SESSION]<br>
BeginString=FIX.4.2<br>
SenderCompID=555<br>
SenderSubID= BBBBBB<br>
TargetCompID=0<br>
<br>
ToAdmin Code I use which doesn?t work<br>
<br>
public void ToAdmin(Message message, SessionID sessionID)<br>
{<br>
if ( (message.ToString().IndexOf("35=D") > 0) || (message.ToString().IndexOf("35=G") > 0) || (message.ToString().IndexOf("35=F") > 0))<br>
{<br>
               message.Header.SetField(new TargetCompID("1"));<br>
}<br>
}<br>
9:56:38 ToApp: 8=FIX.4.2?9=261?35=D?34=63?49=555?50=BBBBBB?52=20180918-06:56:38?56=0?128=1?129=AAAAAA?1=555-----126?11=1?21=1?22=4?38=2500?40=2?44=0.03?47=C?48=JO3109211016?54=2?55=JO3109211016?58=Testing Fix Connec?59=1?60=20180918-09:56:38.579?109=126?110=50?111=100?9596=2?9947=55500350?10=140?<br>
9:56:38 Exchange: 8=FIX.4.2?9=115?35=3?34=73?49=0?50=AAAAAA?52=20180918-09:56:38?56=555?45=63?58=cannot process order: TargetCompID is invalid?372=D?10=067?<br>
<br>
Sent from Mail<<a href="https://go.microsoft.com/fwlink/?LinkId=550986">https://go.microsoft.com/fwlink/?LinkId=550986</a>> for Windows 10<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Quickfixn mailing list<br>
Quickfixn@lists.quickfixn.com<mailto:Quickfixn@lists.quickfixn.com><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br>
<br>
<br>
--<br>
Christoph John<br>
Software Engineering<br>
T +49 241 557080-28<br>
christoph.john@macd.com<mailto:christoph.john@macd.com><br>
<br>
MACD GmbH<br>
Oppenhoffallee 103<br>
52066 Aachen, Germany<br>
www.macd.com<<a href="http://www.macd.com">http://www.macd.com</a>><br>
<br>
Amtsgericht Aachen: HRB 8151<br>
Ust.-Id: DE 813021663<br>
Gesch?ftsf?hrer: George Macdonald<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180918/ff2c8d45/attachment.html">http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180918/ff2c8d45/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Quickfixn mailing list<br>
Quickfixn@lists.quickfixn.com<br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Quickfixn Digest, Vol 83, Issue 10<br>
*****************************************<br>
</div>
</span></font>
</body>
</html>