Skip to main content
Nintex Community Menu Bar

Error appears when sending an email notification with an attachment

  • February 15, 2022
  • 0 replies
  • 23 views
  • Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • 671 replies
 

Error appears when sending an email notification with an attachment

kbt162914

PRODUCT
K2 Five 5.2
BASED ON
K2 Five 5.2
TAGS
Email Event
Microsoft SQL
Workflow
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.

Issue

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.

 

 

Symptoms

The XML structure of the file attachment stored in the database is not valid. For example:

 

<file><name>filename</name><content>Base64EncodedS

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:

<file><name>filename</name><content>Base64EncodedString</content></file>

 

 

 

 

Troubleshooting Steps

To resolve the issue, please change the File column data type to Varchar(max) or Nvarchar(max).
Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings