ForEach Enumerator has failed with error 0x80131509 "(null)"

1

SSIS ForEachLoop Error

I am trying to load multiple excel files with multiple sheets but after deploy into server only i am getting this error.

The GetEnumerator method of the ForEach Enumerator has failed with error 0x80131509 "(null)". This occurs when the ForEach Enumerator cannot enumerate.

i also changed in the properties Run64BitRuntime = false. anyone can suggest me what to do for this error?

FOReach loop container

sql-server-2012
ssis-2012
msbi
foreach-loop-container
asked on Stack Overflow Jul 11, 2017 by AJIT • edited Jul 21, 2017 by Rohit Poudel

1 Answer

1

This error gets thrown when trying to enumerate NULL. It looks like, once deployed, your SSIS package is not finding any excel files, and returning NULL, instead of an empty list.

Sources;

I'd suggest to put some logging in your package Before the enumeration to see if anything is found, then redeploy it, run and check your logs.

answered on Stack Overflow Jul 12, 2017 by Karel-Jan Misseghers • edited Jul 12, 2017 by Karel-Jan Misseghers

User contributions licensed under CC BY-SA 3.0