Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • EMA /
avatar image
Question by gaurav.mahajan · Mar 20, 2018 at 04:26 PM · emaelektrondispatcherdispatch

Not getting data while using user_dispatch mode in EMA?

Dears @nick.zincone.1,@Umer Nalla, @Olivier DAVANT

While using USER_DISPATCH mode, i am not getting the market price data. I tried While referring to few of the samples in MarketPriceStepByStepExample and replaced it with our service name. I am getting the below error while using this :-

>>> Dispatching events until <Item Name> is complete

ERROR - OmmConsumer event dispatching failed: The enum value 1 for the Field ID 6513 does not exist in enumerated type definitions

Could someone suggest what i am missing here?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by nick.zincone.1 · Mar 20, 2018 at 06:37 PM

Hi @gaurav.mahajan,

The error you are seeing may be a result of outdated dictionary files within the ADS you are connected to. I would first try on the step by step EMA Java tutorials (Step 2) that uses the default operation model: API_DISPATCH and check your results. There shouldn't be a different between the 2 operation models. If you suspect it could be the ADS dictionaries are out of date, you can try to use local dictionaries. For this, you will have to utilize a configuration file which includes a Dictionary Group which allows you to use local dictionary files. Local dictionary files are included within your EMA package within the subdirectory: Ema/etc.

Just to make sure were in sync in terms of what I did, I took the above Step 2 tutorial and modified it to use the USER_DISPATCH operation model. Sections I changed:

consumer = EmaFactory.createOmmConsumer(
	config.host("elektron:14002")
	      .username("user")
              .operationModel(OmmConsumerConfig.OperationModel.USER_DISPATCH)
	);
...
// Instead of a sleep, I did this:
long startTime = System.currentTimeMillis();
while (startTime + 60000 > System.currentTimeMillis())
    consumer.dispatch(10);

After running this, I received the expected results.

Try some of these suggestions and let us know what you find.

thanks.

Comment
gaurav.mahajan

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Gurpreet · Mar 20, 2018 at 06:34 PM
@gaurav.mahajan

Seems like you are using an old data dictionary. Can you verify that it is latest, or if you are downloading from TREP, it is the latest version.

This problem should not be related with EMA dispatch mode.

Comment
gaurav.mahajan

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by gaurav.mahajan · Mar 21, 2018 at 05:53 PM

Thanks much @nick.zincone.1 and @Gurpreet.! That helps, i was using old dictionary.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

Is OnStatusMsg is sufficient for handling Connection State, State of Item and other states related to data retrieval using EMA?

What are the parameters we have to pass for the below code consumer.registerClient(reqMsg.serviceName("DIRECT_FEED").name("IBM.N"), appClient);

What could be reason of receiving STATE like [Open / Suspect / None / 'Request timeout'] Using EMA?

Elektron - Get TRNA data

We are getting error while starting APP using EMA like text: Acronym mismatch "PRE_2ET014" and "TRD_P_CCY" between Field Dictionary and Enum Type Dictionary? Can someone share any thoughts on this?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges