SAP Knowledge Base Article - Public

2879938 - Field "fileContent" is not returning in Recruiting API query on Attachment entity - SuccessFactors OData

Symptom

The field "fileContent" is not present in the payload results when you query Attachment entity of Recruiting module.

Environment

  • SAP SuccessFactors HXM Suite
    • OData API

Reproducing the Issue

  1. Perform the query below

    https://<apiurl>/odata/v2/Attachment?$top=1&$filter=module eq 'RECRUITING'

  2. Field "fileContent" is not present in the results

OR

  1. Perform the query below

    https://<apiurl>/odata/v2/Attachment?$top=1&$filter=module eq 'RECRUITING'&$select=fileContent

  2. Error message below returns

    [COE0020]Direct access to Attachment fileContent of module in blocklist* is forbidden due to GDPR(General Data Protection Regulation).

Cause

Read Access Logging (RAL) is enabled in your instance.

Resolution

This is an expected behavior when RAL is enabled.

In order to be able to fetch "fileContent" field, RAL needs to be disabled.

To disable it, follow these steps:

  1. Go to Manage Audit Configuration screen
  2. Select Read Audit tab
  3. Switch off the "Read Access Logging" option

*This word has been redacted and replaced with an inclusive term, please note that this may appear differently in your product, system code or table.

See Also

2620222 - 1802 RAL (Read access log) patch for SF preview instances

2617644 - [1802] [Data Protection and privacyCompliance] API Audit Logs behavior after 1802 release (In Preview and Production SF Instances)

Keywords

successfactors, success factors, sf, sfsf, api, odata, rcm, COE0020, retrieve, query, node, not visible, base64 , KBA , blacklist , LOD-SF-INT-ODATA , OData API Framework , Problem

Product

SAP SuccessFactors HCM Suite all versions