Linux example based on 110, cannot find RDMFieldDictionary
The current situation that i am trying to test:
Windows sink+ windows client works. (compiled by me) on same machine using ip
Windows sink + Linux client (in eclipse project based on 110 with minor modifications - same code as on windows )
OmmConsumer consumer(OmmConsumerConfig("/root/eclipse-workspace/test/conf/EmaConfig.xml").consumerName("Consumer_13").username("ANYUSER")); // uses configuration from EmaConfig.xml
consumer.registerClient( ReqMsg().serviceName( "ELEKTRON_EDGE" ).name( "JPY=" ), client );
gives me the error::
Exception Type='OmmInvalidUsageException', Text='DictionaryCallbackClient::loadDictionaryFromFile() failed.
Unable to load RDMFieldDictionary from file named ./RDMFieldDictionary
or load enumtype.def from file named ./enumtype.def', ErrorCode='-1'
i have put in the directory of EmaConfig.xml enumtype.def and RDMFieldDirectory
Best Answer
-
i turned on logs and found out that:
Error text Acronym mismatch "PRE_2ET291" and "INS_P_CCY" between Field Dictionary and Enum Type Dictionary
i copied latest files for client the servers and now it works
0
Answers
-
Hello @iliak,
You can optionally include the complete path to dictionary in EmaConfig.xml, in DictionaryList section, something like:
<Consumer>
<!-- Name is mandatory -->
<Name value="Consumer_1"/>
<!-- Channel is optional: defaulted to "RSSL_SOCKET + localhost + 14002" -->
<!-- Channel or ChannelSet may be specified -->
<Channel value="Channel_1"/>
<!-- Dictionary is optional: defaulted to "ChannelDictionary" -->
<Dictionary value="Dictionary_3"/>
...
<Dictionary>
<Name value="Dictionary_3"/>
<!-- providers always assume DictionaryType = DictionaryType::FileDictionary -->
<DictionaryType value="DictionaryType::FileDictionary"/>
<!-- dictionary file names are optional: defaulted to ./RDMFieldDictionary and ./enumtype.def -->
<RdmFieldDictionaryFileName value="/opt/user/dicts/RDMFieldDictionary"/>
<EnumTypeDefFileName value="/opt/user/dicts/enumtype.def"/>
...0 -
Hi @iliak
Based on the information you have provided, the most likely cause is that the RDMFieldDictionary and enumtype.def files are not in the expected location.
Typically the application would try to find them in the current working directory - which may not be the same as the application folder perhaps?
The other alternative approach would be to specify the full directory path and file location in the config, so there is no ambiguity to the location.
0 -
the path is now correct but same error:
Exception Type='OmmInvalidUsageException', Text='DictionaryCallbackClient::loadDictionaryFromFile() failed.
Unable to load RDMFieldDictionary from file named /root/eclipse-workspace/test/conf/RDMFieldDictionary
or load enumtype.def from file named /root/eclipse-workspace/test/conf/enumtype.def', ErrorCode='-1'0 -
Hello @iliak,
I would check that the dictionaries are
- Indeed in the location that you specify
- Are permissioned to user
- Are not corrupted
If this does not help,
I just tested EMA110 on my testbed with the default location within ESDK (ESDK is installed in /opt/ESDK/Real-Time-SDK-master) and there was no issue specifying this original location for dictionaries in EmaConfig.xml:
<Dictionary>
<Name value="Dictionary_2"/>
<DictionaryType value="DictionaryType::FileDictionary"/>
<!-- dictionary names are optional: defaulted to RDMFieldDictionary and enumtype.def -->
<RdmFieldDictionaryFileName value="/opt/ESDK/Real-Time-SDK-master/Cpp-C/etc/RDMFieldDictionary"/>
<EnumTypeDefFileName value="/opt/ESDK/Real-Time-SDK-master/Cpp-C/etc/enumtype.def"/>
</Dictionary>Try specifying the original location within SDK?
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 614 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 641 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 89 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛