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.
You may encounter an error when sending an email notification with an attachment:
Unexpected end of file has occurred. The following elements are not closed: content, file. Line 1, position 8001.
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:
To resolve the issue, please change the File column data type to Varchar(max)