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.
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.
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.
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.
005237044

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.