Access denied, what I am doing wrong?

Hi,


I am trying to access the data my company bought through the python API. I have created a config file (according to the github instructions) where I include the machine ID, password and the app key.

I do the following:

import refinitiv.data as rd
from refinitiv.data.content import esg
import os
os.environ["RD_LIB_CONFIG_PATH"] = ".. \refinitiv-data.config.json"
rd.open_session('platform.rdp')
response = esg.universe.Definition().get_data()
response.data.df

It works to start the session so something seem to be working.

But the line "response = esg.universe.Definition().get_data()" gives me an error:

RDError: Error code 403 | access denied. Scopes required to access the resource: [trapi.data.esg.universe.read]. Missing scopes: [trapi.data.esg.universe.read]

Which sounds like I don't have access to this data. Am I trying to access the wrong stuff? Or what I am doing wrong?

This is the product my company bought according to the invoice:

1641990475268.png


I am stumbling in the dark a bit here, I hope someone can send me in the right direction.

Thank you

Tagged:

Best Answer

  • umer.nalla
    umer.nalla LSEG
    Answer ✓

    hi @jens.wilhelmsson

    Please speak to your Refinitiv Account team/representative.

    The above error indicates that your credential (machine ID) is not licensed for trapi.data.esg.universe.read. Either your credential was not configured correctly by the account team or the required licence is not included in the products you purchased.

    Whilst the moderators on this forum can help with API how to / programming type questions - we do not have access to your credentials/licence information.


Answers