Skip to main content

I have a screen flow which displays a Text Area field using the "Record Fields" feature. We recently ran into an error when trying to save a record via this flow.

 

The text area field was populated with 255 characters which included a line break. Since 255 characters is the max that is permitted, the field allowed them to enter it. However, when they clicked Next and flow tried to save the record, it threw an unhandled fault error. The error in the email was "data too large".

 

I filed a case with support and was told that this is working as designed - that line breaks are counted as two characters, and the agent gave me a link to this Known Issue from 2014: https://issues.salesforce.com/issue/a028c00000qPxmMAAS/inconsistent-line-break-in-long-text-area-field

 

My thoughts are that if a line break is counted as 2 characters when saving, it should be counted as 2 characters when the user is entering data as well, so that the field stops them from entering more  characters than will be permitted when saving the record. I hope this is something the flow team can fix! (The current workaround suggested by the support agent is to add a note on the screen which warns not to use line breaks in the input, but that's not an ideal solution IMO.)

 

Thanks in advance!

7 Antworten
  1. 7. Sept., 10:50

    This does need fixing. Telling admins in a help centre article to just make the text field longer or add a note is incredibly poor advice, especially since thre is no easy way to show how many characters are left in the field.

0/9000