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 Data APIs /
avatar image
Question by CodeWave · Jun 10, 2020 at 10:14 AM · eikoneikon apipython apieikon data apipython api eikon

EikonError: Error code 408 | UDF timeout occured. The operation was canceled.

Hi,

I get the following error while conducting a heavy loop:


The loop I am conducting looks like this:


I dívided the ~12,000 firms to groups of 500 to avoid the limit for 10,000 data points per search since I search with 17 fields/data items. How could I best implement the search to all of the 12,000 firms or fix the error occuring?

Many thanks for any advice!

capt7.png (23.2 KiB)
capt8.png (19.3 KiB)

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 chavalit.jintamalit · Jun 11, 2020 at 04:45 AM

Hi @CodeWave

You can use try, except code block to handle error.

try:
   df,err = ek.get_data(...)
except ek.EikonError:
   //do something, perhaps retry the request again after some period of time
Comment

People who like this

0 Show 4 · 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
CodeWave · Jun 11, 2020 at 07:57 AM 0
Share
Hi,


Ok. Thanks! But what is causing the problem so I can prevent the error in the first place? Meanwhile, I will try to make a try-expect structure to handle the issue.

avatar image
REFINITIV
chavalit.jintamalit ♦♦ CodeWave · Jun 11, 2020 at 10:33 AM 0
Share

There are a lot of possible factors such as network, service availability on server side, etc...

So implementing try, except code block is safer.


Please also note that there is a 5-requests-per-second limitation as well, (please review the API limitation document at this URL, https://developers.refinitiv.com/eikon-apis/eikon-data-api/docs?content=49692&type=documentation_item


avatar image
CodeWave chavalit.jintamalit ♦♦ · Jun 11, 2020 at 11:14 AM 0
Share

Hi,

Okay. Could you provide a short example or refer to a thread where there is an example provided of such a try-expect structure that works efficiently?

Many thanks.

avatar image
REFINITIV
Answer by umer.nalla · Jun 11, 2020 at 08:32 AM

Hi @CodeWave

Have you tried adding a sleep() between each get_data() call?

I am not an expert on the inner workings of the Eikon API, however, the trace you shared mentions server errors around when the json request is sent to the server.

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
CodeWave · Jun 11, 2020 at 11:28 AM 0
Share

No, I had not tried. Thanks for the tip! I think i will try using a try-expect structure and also use sleep between each iteration for chunked firm lists. We'll see how that works out.

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

Related Questions

How to find field names in Eikon Python API?

Value chains

Eikon Desktop Data API stopped working after changing to a new user on Eikon terminal

Number or RICs returned from screener seems too high

ID type being used for TR.ISIN or TR.ISINcode

  • 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