ssis foreach loop error : Enumerator cannot enumerate

时间:2015-07-28 15:36:55

标签: ssis

I've developped an ssis package with a foreach loop within another : the idea is to loop through the files (.xlsm) of a folder, then loop through the sheets of each file.

I used 3 package scoped string variables to get the files path, the sheets name and to configure the connection, and i used a data flow task within the inner foreach loop to load the values of my variables in a table.

Now when i execute the package, it starts looping, the values in the destination table are correct ( some of them are repeated more than once i dont know why ) but at the end the foreach loops fail even if the DFT is green.

the only error that i get is : The GetEnumerator method of the ForEach Enumerator has failed with error 0x80004005 "Erreur non spécifiée". This occurs when the ForEach Enumerator cannot enumerate.

and a warning : 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.

would you please help me figure out what went wrong ?

Thanks.

1 个答案:

答案 0 :(得分:0)

您的问题的解决方案如下:

打开解决方案资源管理器。 Project-> Properties-> Debugging-> Run64BitRunTime = TRUE(将其更改为FALSE) - >单击OK。