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 barbara.bukhvalova · Jul 27, 2020 at 09:22 PM · reikon comrsearch

Eikon COM RSearch in R

I am trying to get Eikon COM Rsearch to work with R

I have some rather old code that I am trying to revive as it was at least partially working

I am using these libraries in R:

require(RDCOMClient)
require(audio)

I have tried creating connection in two ways:

eikon = COMCreate("EikonDesktopDataAPI.EikonDesktopDataAPI")

(a la C# tutorial here)

eikon = COMCreate("EikonDesktopDataAPILib.EikonDesktopDataAPI")

(from my old code). Both do not work but errors are different

> eikon = COMCreate("EikonDesktopDataAPI.EikonDesktopDataAPI")
Error: Invalid class string
In addition: Warning message:
In getCOMInstance(name, force = TRUE, silent = TRUE) :
  Couldn't get clsid from the string
> eikon = COMCreate("EikonDesktopDataAPILib.EikonDesktopDataAPI")
Error in COMCreate(guid, existing = FALSE) : 
  Failed to create COM object: Class not registered

I also created a registry key ({89CB9AA2-9658-4D64-A86F-C6A4D89778BF}) for dex2.dll, as advised previously. Not sure if the key is the same still. Also, not sure if there is also a key one needs for rsearch.dll or rsearchagent.dll. Obviously, I have not gotten that far quite yet...

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.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov. · Jul 28, 2020 at 09:07 PM

@barbara.bukhvalova

These errors are due to the fact that DEX2 and RSearch libraries are reg free COM dlls. You could get around this by manually creating registry entries for the type libraries. However, if the objective is to use RSearch library in R, I'm afraid this might be a dead end. The reason is that the interface of RSearch library only allows to access the search results from the OnUpdate event handler. And RDCOMClient does not support handling of COM events in R. There used to be a package named RDCOMEvents, but it hasn't been maintained in 15 years and I don't believe it still works. You could try implementing event handling for RSearch library following this article. I haven't tried it myself and can't tell you if it works.

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
REFINITIV
Answer by Alex Putkov. · Jul 27, 2020 at 10:11 PM

COMCreate("EikonDesktopDataAPILib.EikonDesktopDataAPI") is the correct command. This COM library is registered. You can find EikonDesktopDataAPILib.EikonDesktopDataAPI class listed under HKCR\CLSID registry hive. Since it's a 32-bit library, its class GUIDs appear in the registry under Wow6432 node. Judging by the fact that your R interpreter complains it cannot find CLSID registry entry for EikonDesktopDataAPILib.EikonDesktopDataAPI, I suspect you must be using 64-bit R. All Eikon COM APIs libraries are 32-bit and can only be used in 32-bit applications.

Comment

People who like this

0 Show 1 · 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
barbara.bukhvalova · Jul 28, 2020 at 07:39 PM 0
Share

Thank you @alex-putkov. This was indeed part of the problem.

Now,

eikon = COMCreate("EikonDesktopDataAPILib.EikonDesktopDataAPI")
eikon$Initialize()

execute without errors.

The next step also gets executed without errors but with a warning

rsearchmgr = eikon$CreateRSearchMgr()
Warning message:
In createCOMReference(<pointer: 0x1aa6c2ac>, "COMUnknown") :
  Using COMIDispatch instead of COMIDispatch

However, the warning is not innocuous: the next line throws an error:

cookie = rsearchmgr$Initialize()
Error in .COM(x, name, ...) : 
  Cannot locate 0 name(s) Initialize in COM object (status = -2147319779)

The same problem for dex2:

cookie = dex2mgr$Initialize()

Could you please provide the rest of the steps including a simple search example?

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

Related Questions

RSearch Criteria

RSearch COM API in Python

RSearch(): Maximum number of instruments retrieved

callback in VBA relies on application.enableevents being set to true

RSearch: extract curves data

  • 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
  • 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