Filing API returns error message "User did not have entitlements to the field".

Hello, when I tried to get filing data with Python Filing API, I only get NAs and above error message.

I was able to download full correct data using ADVFIL function on LSEG WORKSPACE desktop app. However, I need to acquire filing data for over 3,000 firms. I cannot download all of it manually.

Here is my code:

 response=filings.search.Definition(
  query=FilingsQuery().orgid(SymbolLookup(ric="7203.T").convert())
  .start_date("2024-01-01T00:00:00Z")
  .end_date("2024-06-30T23:59:59Z")
  .graphQL
 ).get_data()

Here is what "response.data.raw" returned:

 'extensions': {'warnings': [{'field': 'FinancialFiling',    'message': 'Results may have been truncated. Specify a limit and cursor to fetch more.',    'type': 'RESULT_TRUNCATED',    'warningCode': 'DW005'},   {'field': 'FinancialFiling.FilingDocument',    'message': 'User did not have entitlements to the field.',    'type': 'NO_ENTITLEMENTS_FOR_FIELD',    'warningCode': 'DW003'}]}}

"SymbolLookup" and "FilingsQuery" is from:

https://github.com/LSEG-API-Samples/Article.RD.Python.PredictiveModellingForFilings

Any solutions or alternatives of ADVFIL?

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @Sophie_D

    Thank you for reaching out to us.

    I can retrieve the data properly when using the platform session.

    image.png

    However, it returns NA when using the desktop session.

    image.png

    I didn't see the following error in the raw data.

      'message': 'User did not have entitlements to the field.'
    

    According to the error, it looks like to be a permission issue. You may need to contact your LSEG account team or Sales team to verify your permission. Otherwise, you can try the platform session instead.

Answers