FIX: Insufficient memory error when you run an XML Validation Control Flow task on a large input file in SSIS 2012 or SSIS 2014

Applies to: SQL Server 2012 Business IntelligenceSQL Server 2014 Business IntelligenceSQL Server 2014 Business Intelligence

Symptoms


Assume that you use Microsoft SQL Server 2012 Integration Services (SSIS 2012) or SSIS 2014. When you run an XML Validation Control Flow task on a large input file, after a period of processing, SSIS may throw an insufficient memory exception as follows:
SSIS package "xxx" starting.
Error: 0xC002F304 at XML Task, XML Task: An error occurred with the following error message: "Insufficient memory to continue the execution of the program."
Error: 0xC002928F at XML Task, XML Task: Property "New Source" has no source Xml text; Xml Text is either invalid, null or empty string.
Task failed: XML Task
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "xxx" finished: Failure

Note The issue occurs regardless of whether the Validation Details property is set to true or false.

Resolution


The issue was first fixed in the following cumulative update of SQL Server.

Cumulative Update 1 for SQL Server 2014 SP1

Cumulative Update 4 for SQL Server 2012 SP2

Cumulative Update 6 for SQL Server 2014

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.