Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon COM /
avatar image
Question by IS · May 03, 2017 at 01:54 PM · dex2eikonnect

Programatically connect to Eikon and create Dex2 Manager

I'm using the example code CSharpEikonnect and trying to create Dex2 Manager by calling CreateDex2Mgr() immediately after ConnectToEikon() completes. I also tried to call CreateDex2Mgr() from the OnStatusChanged method after the connection to Eikon is successful but in both cases I get the exception below. Is it possible to programatically connect to Eikon and create Dex2 manager?

Exception:

System.Runtime.InteropServices.COMException: 'The system cannot locate the object specified.

People who like this

0 Show 1
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.

avatar image
REFINITIV
Alex Putkov. ♦♦ · May 03, 2017 at 04:07 PM 0
Share

Hi @IS

Do I understand correctly that when following the example and creating Dex2Mgr object by clicking Create Dex2 Manager button in the user form everything works as expected? However when you modify the example and call CreateDex2Mgr method from within ConnectToEikon procedure or from within OnStatusChanged callback you get the exception? Are there any further details on the exception?

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov. · May 04, 2017 at 02:34 PM

More than likely you're calling CreateDex2Mgr function before your application connected to Eikon. When MyEikonDesktopDataAPI.Initialize returns EEikonDataAPIInitializeResult.Succeed, it does not mean the application is already connected to Eikon. It just means the Initialize method was called successfully. OnStatusChanged event being triggered also does not necessarily mean the application is connected to Eikon. Inside OnStatusChanged event handler you need to check the value of EStatus parameter. Outside of this event handler you can check the value of MyEikonDesktopDataAPI.Status property. CreateDex2Mgr function will only execute successfully if either EStatus or MyEikonDesktopDataAPI.Status value is EEikonStatus.Connected. In the example UpdateUserFormAccordingToConnectionStatus procedure enables "Create Dex2 Manager" button only once the value of EStatus parameter passed to OnStatusChanged event handler is EEikonStatus.Connected.
For full documentation on EikonDesktopDataAPI library refer to the Developer Reference Guide under the Documentation tab:
https://developers.thomsonreuters.com/eikon-com/eikon-desktop-data-api/docs?content=786

Comment
IS

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 IS · May 04, 2017 at 09:25 AM

That is correct Alex. I tried creating Dex2Mgr object in several different ways including from the ConnectToEikon and OnStatusChanged methods. I got the same error in each case. For example the error details below occurred when I called CreateDex2Mgr() from Form1 immediately after connecting to Eikon.

System.Runtime.InteropServices.COMException occurred

HResult=0x80004005

Message=The system cannot locate the object specified.

Source=msxml3.dll

StackTrace:

at EikonDesktopDataAPI.IEikonDesktopDataAPI.CreateDex2Mgr()

at CSharpEikonnect.Form1.CreateDex2Mgr() in C:…\CSharp\Form1.cs:line 90

at CSharpEikonnect.Form1..ctor() in C:\...Form1.cs:line 29

at CSharpEikonnect.Program.Main() in C:\...\Program.cs:line 18

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.

avatar image
Answer by IS · May 04, 2017 at 04:06 PM

Thanks Alex! That was it, I was able to watch the status and Create Dex2 after the status was Connected.

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 >
7 People are following this question.

Related Questions

How to do "Null:Blank" in Eikon API Dex2 ADC within the Excel VBA environment?

Dex2 Interim Data

Performance issues when fetching large amounts of data

optimal handling of DS_DE_NULL_ERROR

Accessing Eikon v4 style fields using DEX2 C++ COM API

  • 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