Code 221 'The access to field(s) denied.' when trying to access event data with Refinitiv Data while

Hi,

I trying to get event data using Refinitiv Data, using both sync requests as async requests. No error code is supplied for sync requests (just an empty df), but when I use async I get error code 221 'The access to field(s) denied.'

I find the error strange since I have access to event data using Eikon's Python API. Using the identical async request code, I can access corax data without an issue.

So what could be wrong? A bug somewhere in the Refinitiv Data API?

Also, for clarification, for the async request I use fundamental_and_reference from refinitiv.data.content. Should I perhaps use something else?

Or, is there an alternative way to get event data?

Best Answer

  • Jirapongse
    Answer ✓

    @jonas.rasbrant

    Thank you for reaching out to us.

    Please check the version of Refinitiv Data Library for Python and share the code that you are using.

    You can also enable the debug log in the library to verify the endpoints that the library is using by running the following code before opening the session.

    # Enable logging
    #rd.get_config()["logs.level"] = "debug"
     
    # Console
    #rd.get_config()["logs.transports.console.enabled"] = True
     
    # File
    #rd.get_config()["logs.transports.file.enabled"] = True
    #rd.get_config()["logs.transports.file.name"] = "data-lib.log"

    The APIs may use different endpoints to retrieve data and the error indicates that you don't have permission to access the requested fields.