Skip to content
Bug Barometer
All issues
Solution Deploying

Your Salesforce Experience / Known Issues

Prompt Builder preview rejects PDFs under the 15 MB limit due to file size calculation discrepancy

Reported
Nov 26, 2026
Updated
Nov 27, 2026
Fixed
—
Reports
0
Found in
Winter '27
Reference
W-25047424

Summary

When testing a prompt template in Prompt Builder, uploading a PDF file sized between 14.3 MB and 15 MB succeeds in the file picker, but clicking Preview fails with an error stating the file exceeds the 15 MB limit.


Description

Prompt Builder currently calculates PDF file sizes differently across the file picker and the preview window:

  • File Picker & Runtime Execution: Uses standard binary megabytes (1,024 KB per MB), allowing PDF files up to 15 MB (15,728,640 bytes).
  • Prompt Builder Preview: Uses decimal megabytes (1,000 KB per MB) when displaying and validating the attached file size against the 15 MB limit.

Because of this discrepancy, a PDF that appears as 14.5 MB in the file picker is displayed as 15.2 MB on the prompt input pill. Attempting to preview the prompt blocks execution with the following error message, even though the file is within the supported limit:

“The pdf is 15.2MB and exceeds the 15MB per pdf limit”


Workaround

Reduce or compress the PDF file size so that it displays as under 14.3 MB in the file picker (or under 15.0 MB on the Prompt Builder input pill) before running a preview.

Steps to reproduce

Steps to Reproduce

  1. Open Prompt Builder and open or create a prompt template that accepts PDF file inputs.
  2. Attach a PDF file whose actual size is between 14.3 MB and 15 MB (for example, 14.5 MB as shown in the file picker).
  3. Observe the file size displayed on the attached file pill (it displays as greater than 15.0 MB).
  4. Click Preview to run the prompt.
  5. Result: The preview is blocked with an error stating that the PDF exceeds the 15 MB per-PDF limit.


Status timeline

  1. Nov 30, 2026

    created · Solution Deploying · 0 reports

  2. Nov 30, 2026

    content changed · Solution Deploying · 0 reports

Official known-issue pageSuggest a workaround