[ERROR]: ascii cannot be converted to Group

27 views
Skip to first unread message

Mounika Allagadda

unread,
May 20, 2016, 7:18:42 AM5/20/16
to quickfast_users
Hi,

I am getting the following error.
terminate called after throwing an instance of 'QuickFAST::UnsupportedConversion' 
   what():  ascii cannot be converted to Group

As per Dale's comment here,

I think this is because of the same group name and field name(RelatedSymbol) in the same scope.

The template is as follows:
    <template name="RelatedSymbol" id="5" dictionary="RelatedSymbol">     
          <typeRef name="RelatedSymbol"/>
          <string name="Symbol" id="55" presence="optional"><copy/></string> 
          <string name="ProductComplex" id="1227" presence="optional"></string> 
		  <uInt32 name="MDSubBookType" id="1173" presence="optional"></uInt32>
    </template>

    <template name="MDEntryType" id="6" dictionary="MDEntryType">     
          <typeRef name="MDEntryType"/>
          <string name="MDEntryType" id="269" presence="optional"><copy/></string> 
          <string name="MDEntryTime" id="273" presence="optional"></string>
          <uInt32 name="MDBookType" id="1021" presence="optional"></uInt32>  
    </template>

  <template name="MarketDataRequest" id="7" dictionary="MarketDataRequest">  
       <typeRef name="MarketDataRequest"/>
       <templateRef name="MarketDataRequestHeader"/> 
       <string name="MDReqID" id="262" presence="mandatory"></string>
       <sequence name="NoMDEntryTypes" presence="optional"> 
			<length name="MDEntryType" id="267"/> 
			<templateRef name="MDEntryType"/>
       </sequence> 	   
      <sequence name="RelatedSymbol" presence="optional"> 
		  <length name="RelatedSymbol" id="146"/>
          <templateRef name="RelatedSymbol" />
       </sequence> 
       <templateRef name="StandardTrailer"/>                        
    </template>

Can you please confirm and guide me to the correct path.

Thanks,
Mounika

Mounika Allagadda

unread,
May 20, 2016, 8:56:49 AM5/20/16
to quickfast_users
Hi,

It is working after changing MDEntryType in the following line to some other different name as follows.
<string name="MDEntryType1" id="269" presence="optional"><copy/></string> 

Is there a way to solve it without changing the template?

Thanks,
Mounika

vikram patil

unread,
May 23, 2016, 1:07:23 AM5/23/16
to quickfast_users
Hi Mounika, Is your working for MIT/NCDEX I've seen this error in NCDEX exchange XML file. I've changed XML entries:

<template name="NoMDEntryTypes" id="6" dictionary="NoMDEntryTypes">    
          <typeRef name="MDEntryType"/>
          <string name="MDEntryType" id="269" presence="optional"><copy/></string>
          <string name="MDEntryTime" id="273" presence="optional"></string>
          <uInt32 name="MDBookType" id="1021" presence="optional"></uInt32> 
    </template>

  <template name="MarketDataRequest" id="7" dictionary="MarketDataRequest"> 
       <typeRef name="MarketDataRequest"/>
       <templateRef name="MarketDataRequestHeader"/>
       <string name="MDReqID" id="262" presence="mandatory"></string>
       <uInt32 name="SubscriptionRequestType" id="263" presence="mandatory"></uInt32>       
       <sequence name="NoMDEntryTypes" presence="optional">
            <length name="NoMDEntryTypes" id="267"/>
            <templateRef name="NoMDEntryTypes"/>
Reply all
Reply to author
Forward
0 new messages