This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.
Workflow email errors with this message:
This error will occur when using a text/memo field in an email subject from an Item Reference, SmartObject, or Data field that contains the encoding:
- newline/line feed/LF/'\n'
This is similar to:
To resolve this error, inline functions and data field manipulation can be used to remove\replace the line feed; allowing for successful sending of the email. This will be implemented to the effect of:
- encoding the text field with the URL Encode() inline function; this will surface the LF as '%0a' so that it is targetable
- removing/replacing this '%0a' portion with a Replace() inline function (perhaps replacing the line feed with a space)
- decode the field again
All of the inline functions can also be handled in a single data transfer event:
URL Decode(Replace(URL Encode([SubjectDataField]),%0a,[ReplacementString/EmptyString]))
Workflow started with a field that has a new line/line feed.
This is the email Subject with line feed replaced with space.
This is the data field audit trail if each step was done in a separate transfer data event.