Loading

This article explains the issue where newlines are counted as two characters in the UI for Long Text Area fields, causing a character limit exceeded error.

Publiseringsdato: Dec 23, 2025
Beskrivelse

This article explains the issue where newlines are counted as two characters in the UI for Long Text Area fields, causing a character limit exceeded error.

Løsning

When editing text in the Salesforce UI, a newline (pressing the Enter key) is treated as two symbols, "Line Feed" and "Carriage Return," and counts as two characters. On the other hand, automation processes such as Flow treat a newline as one character (Line Feed: \n), causing a discrepancy in character count recognition between internal processing and UI operations.

 

Please note the following points when handling data close to the character limit.

  1. Allow margin for the character limitDesign the text input by automation processes to be well within the character limit (e.g., 300 characters) considering editing in the UI, or set the character limit of the Long Text Area field to a value with a margin greater than the expected maximum number of characters. 

    +1

     

  2. Remove or replace newlines If the error message "Data value too large" is displayed when saving in the UI, delete unnecessary newlines to reduce the character count.

Knowledge-artikkelnummer

005237044

 
Laster
Salesforce Help | Article