SAP Knowledge Base Article - Public

3809665 - Oversized PMGM form attachments return JSON parsing error instead of file size limit message — SAP SuccessFactors Performance & Goals

Symptom

  • PMGM form attachment limit is configured to 10,000 kilobytes (10 MB).
  • Uploading a 15 MB file is correctly rejected with: "The file size of [file name] exceeds the maximum file size limit of 10,000 kilobytes."
  • Uploading a 65 MB file returns: "Unexpected token '<', "
  • Files exceeding the 10 MB limit are expected to be consistently rejected with the configured file-size error message.

Environment

  • Product: SAP SuccessFactors Performance & Goals
  • Admin Center, RBP, Permissions and Settings

Reproducing the Issue

  1. Configure the PMGM form attachment size limit to 10,000 kilobytes (10 MB).
  2. Attempt to upload a 15 MB file and observe that the file-size limit error message is shown.
  3. Attempt to upload a 65 MB file and observe that a JSON parsing error appears instead of the file-size limit message.

Cause

  • When an attachment is significantly larger than the configured limit, the web server terminates the request before the application receives it. The application then attempts to parse an incomplete/HTML response, resulting in a JSON parsing error.

Resolution

  1. Confirm the configured attachment size limit for PMGM forms (for example, 10,000 KB).
  2. Inform users that for excessively large files, the web server may cut off the request before application-level validation, which can result in a JSON parsing error. This behavior is expected.
  3. Instruct users to keep attachment sizes within the configured limit to ensure the proper file-size validation message is displayed.
  4. If consistent error messaging is required for very large files beyond the application limit, submit or vote for an enhancement request as per the enhancement process.

See Also

Keywords

PMGM, attachment, file upload, file size limit, 10000 kilobytes, 10 MB, JSON parsing error, Unexpected token '<', DOCTYPE, not valid JSON, web server cutoff, oversized files, performance form, error message, upload failure , KBA , LOD-SF-PM-ADM , Admin Center, RBP, Permissions and Settings , How To

Product

SAP SuccessFactors Performance & Goals 2605