SSIS Excel Connection Manager failed to Connect to the Source

前端 未结 13 1849
青春惊慌失措
青春惊慌失措 2020-12-23 17:42

I have a server that is capable of creating and running an Excel Import task using the Import Wizard. I am trying to automate that process by using a visual Studio 2010 Inte

相关标签:
13条回答
  • 2020-12-23 17:49

    My answer is very similar to the one from @biscoop, but I am going to elaborate a bit as it may apply to the question or to other people.

    I had a .xls that was an extraction from one of our webapps. The Excel connection would not work (error message: "no tables or views could be loaded"). As a side note, when opening the file, there would be a warning stating that the file was from an online source and that the content needed activation.

    I tried to save the same file as an .xlsx and it worked. I tried to save the same file with another name as an .xls and it worked too. So as a last test I only opened the source .xls file, clicking save and the connection worked.

    Short answer: just try and see if opening the file and saving does the trick.

    0 讨论(0)
  • 2020-12-23 17:50

    Simple workaround is to open the file and simply press save button in Excel (no need to change the format). once saved in excel it will start to work and you should be able to see its sheets in the DFT.

    0 讨论(0)
  • 2020-12-23 17:52

    After researching everywhere finally i have found out temporary solution. Because i have try all the solution installing access drivers but still i am facing same issues.

    For excel source, Before this step you need to change the setting. Save excel file as 2010 format.xlsx

    Also set Project Configuration Properties for Debugging Run64BitRuntime = False

    1. Drag and drop the excel source
    2. Double click on the excel source and connect excel. Any way you will get an same error no table or view cannot load....
    3. Click ok
    4. Right click on excel source, click on show advanced edit.
    5. In that click on component properties.
    6. You can see openrowset. In that right side you need to enter you excel sheet name example: if in excel sheet1 then you need to enter sheet1$. I.e end with dollar symbol. And click ok.
    7. Now you can do other works connecting to destination.

    I am using visual studio 2017, sql server 2017, office 2016, and Microsoft access database 2010 engine 32bit. Os windows 10 64 bit.

    This is temporary solution. Because many peoples are searching for this type of question. Finally I figured out and this solution is not available in any of the website.

    0 讨论(0)
  • 2020-12-23 17:53

    Here's the solution that works fine for me.

    I just Saved the Excel file as an Excel 97-2003 Version.

    0 讨论(0)
  • 2020-12-23 17:53

    I faced the same issue. I think @Rishit answer helped me. This issue is related to 32 bit/ 64 bit version of driver. I was trying to read .xlsx files to SQL Server tables using SSIS

    • My machine was pre-installed with Office 2016 64 bit on Win 10 machine along with MS Access
    • I was able to read excel 97-2003 (.xls) files using ssis, but unable to connect .xlsx files
    • My requirement was to read .xlsx files
    • Installed AccessDatabaseEngine_X64 to read xlsx, that given me the following error:

    • I uninstalled the AccessDatabaseEngine_X64 and installed AccessDatabaseEngine 32 bit, that resolved the issue
    0 讨论(0)
  • 2020-12-23 17:54

    As discussed in the below:

    Solution: Go to https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftAnalysisServicesModelingProjects and install the latest version, it has a fix in there to resolve this issue.

    Reference: https://developercommunity.visualstudio.com/content/problem/745991/could-not-load-file-or-assembly-microsoftdatawareh.html

    A fix for this issue has been internally implemented and is being prepared for release. We’ll update you once it becomes available for download. For now, please install latest SSAS from https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftAnalysisServicesModelingProjects to work around the issue. Sorry for any inconvenience.

    0 讨论(0)
提交回复
热议问题