Cannot aquire connection from connection manager

Christopher Jack 1,611 Reputation points
2021-03-10T21:59:18.923+00:00

Hi,

I am trying to follow an online instruction on to read in some excel files into a db .

http://microsoft-ssis.blogspot.com/2011/02/how-to-configure-foreach-loop-file.html

I have set everything up as per instruction however i am getting the follwowing error when I try and run it...

Error at Data Flow Task [Excel Source [26]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager 1" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.

Error at Data Flow Task [SSIS.Pipeline]: Excel Source failed validation and returned error code 0xC020801C.

Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.

Error at Data Flow Task: There were errors during task validation.

Error at PalletUpload [Connection manager "Excel Connection Manager 1"]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft Access Database Engine" Hresult: 0x80004005 Description: "Invalid argument.".

(Microsoft.DataTransformationServices.VsIntegration)

I have set the variable in the foreach file loops to be a string and have made sure there is an xlsx file in the location.

Can anyone help?

Thanks

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,454 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalv-MSFT 5,896 Reputation points
    2021-03-11T07:40:31.717+00:00

    Hi @Christopher Jack ,

    Warning: 0x8001C004 at Checks files: The For Each File enumerator is empty.

    1.Please check if the excel files exist in the folder that you used in the Foreach Loop Container.

    2.Please set example value in the variable and test if we can preview excel data in the Excel Source.

    Best regards,
    Mona


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.