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 igorg · Oct 31, 2018 at 12:13 PM · eikoneikon-com-apistatus

RSearchLib::IRSearchResponse Status codes

Hello,

I use COM API RSearch objects to get the tickers.

On RSearchQuery update I receive an object of RSearchLib::IRSearchResponse * pIRSearchResponse.

Then I do

l_hr = pIRSearchResponse->get_Status(&l_RSearchQueryStatus);

When everything is fine I get S_OK.

But I get 0x80040223 when there is no results for given search criteria. This is actually not an error, so I need to differentiate it from other errors.

Is there a list of possible status codes/errors?

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.1 · Nov 01, 2018 at 02:39 PM

OK, now I see what you're looking for. Here's another example of the status you may receive: pIRSearchResponse.Status==0x8004021B, pIRSearchResponse.StatusDescription=="Invalid request response".
I'm afraid I don't have an exhaustive list of status codes and messages the library may produce. It's not documented anywhere, so to compile the list would require opening the source code. However, I believe that anything other than 0x80040223 is an error.
If you really need it, we could open the source code and get the exhaustive list.

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
igorg · Nov 01, 2018 at 02:46 PM 0
Share

@Alex Putkov.

This is good enough for now.

Thank you.

avatar image
REFINITIV
Answer by Alex Putkov.1 · Oct 31, 2018 at 05:12 PM

I'm not sure I understand what you need to differentiate. An error in search criteria names, e.g. unsupported value for AssetClass property or incorrect criteria name in SearchCriteria property will result in object raising an exception when you execute Send method.
This is quite distinct from no results returned into OnUpdate event (also signified by pIRSearchResponse.Status being equal to 0x80040223 and pIRSearchResponse.StatusDescription saying "No results were found matching your criteria").
If your intention is to differentiate between various reasons why there may be no results matching your criteria, such as spelling errors in criteria values vs. no results matching some numeric criteria, there's no way to do this. The search service does not know what values you intended to provide, it only knows the values you have provided. It has no way of determining if the criteria value is unintentionally misspelled or intentionally set to the value that has no matches.

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
igorg · Oct 31, 2018 at 06:05 PM 0
Share

@Alex Putkov.

Basically, I just wanted to know what other statuses can be returned.

When it's "No results", then it's fine, I consider the request is complete.

If there is something like "I died in the middle of the communication with TR servers...", then I want to re-run the request again.

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

Excel API: formula builder - retreive data from local server

RDATA batch request with individual Sdate parameters

Missing Data for brent crude ticker

Retrieve list of instruments for all stocks on an exchange

Using COM API in VBA code, suddenly cannot connect to Eikon Desktop

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • 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
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • 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
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges