You may encounter an error when sending an email notification with an attachment:
The XML structure of the file attachment stored in the database is not valid. For example:
The string gets cut off because the size of the file attachment exceeds the data type set on the File column.
An example of a valid XML structure is as follows: