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: FailureNote 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 /en-us/help/3067839
Cumulative Update 4 for SQL Server 2012 SP2 /en-us/help/3007556
Cumulative Update 6 for SQL Server 2014 /en-us/help/3031047
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.