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 guillaume.chatel · Mar 19, 2020 at 01:33 PM · eikon data api error

Error converting value XXX to type 'System.Int32

Hello,

It seems eikon is 32 bit, but some large values are larger than the 32bit wideness.
I've read around that there's no plan to release the API in 64bit, but some workaround may be possible.

In my case, I'm trying to retrieve data through get_data in python 3.7.7 (64 bit):

ek.get_data(
                ['.HSI'],
                {'TR.SurfVolMONEYNESS': { 'params':{ 'TENOR': '1M;24M', 'range': '50;150' }}},
                raw_output=True
            )

Looking at the software, it seems the large value that cannot be converted is not even part of the results table, in the software it's there:

Is there any workaround known to you to avoid this error?

Thanks,

1584624690494.png (6.5 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.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by chavalit.jintamalit · Mar 19, 2020 at 11:54 PM

Hi @guillaume.chatel

In your sample code, please try raw_output=False

And I compare the result from API with result from Eikon Excel, both results are the same (504 rows)


ahs.png (73.5 KiB)
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 jirapongse.phuriphanvichai · Mar 20, 2020 at 03:24 AM

@guillaume.chatel

From my checking, the large integer returned from Python Eikon Data API can be displayed properly.

If the error message is "Error converting value XXX to type 'System.Int32", please let me know the API that you are using to retrieve the data.



1584674457855.png (12.0 KiB)
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 guillaume.chatel · Mar 20, 2020 at 10:31 AM

Thanks for the answer, when I execute your commands in python 3.7.7 (64b) I have the Int32 conversion error.

I'm using python api eikon 1.1.2 with thomson reuteurs eikon Desktop 4.0.50
I noticed however that my installation of Eikon is the 32b one, is there a 64b version I can download somewhere to try if it solves the issue ?

Thanks,

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
REFINITIV
wasin.waeosri ♦♦ · Apr 17, 2020 at 04:54 AM 1
Share

Hello @guillaume.chatel

Do you still encounter the issue? Regarding the Eikon Desktop download, I suggest you contact the Eikon support team to help you via https://my.refinitiv.com/ web site.

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

Python Eikon Data API Error

Eikon Data API Error "Asynchronous Query library internal error"

Eikon API Hangs and doesn't give error message, then other times it works fine. It really seems to be random.

Error Code 101 : MacOs

EIKON API just hangs and nothing happens

  • 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