Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

The enumerator failed to retrieve element at index "1" error occurs randomly

$
0
0

Hi,

I have a SSIS package that randomly fails with error:

Error: The enumerator failed to retrieve element at index "1".
Error: ForEach Variable Mapping number 2 to variable "User::variable" cannot be applied.

The package reads a two columns from a database table and stores the result set in an object type variable. This variable is then used in a foreach loop container to iterate through the results. The package seems to fail without a good reason. If the error happens when I'm running the package from BIDS, I can get the package working by restarting BIDS. The real problem is that if the package fails when running it outside BIDS, I have no reliable way to get it working again. What's going on here?

I'm running SQL Server 2008 R2 EE on Windows Server 2008 R2 Enterprise.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>