ODBC Excel Driver: Unexpected error from external database driver

前端 未结 9 1277
天命终不由人
天命终不由人 2020-12-17 04:08

Since the Windows update from October 10, the ODBC Excel drivers have stopped working. We get the following error when trying to read a file:

\"Unexpe

相关标签:
9条回答
  • 2020-12-17 04:23

    HERE is the solution... i found it in another forum and work perfectly for me... it will works 100%

    As mentioned in the following:

    https://forums.embarcadero.com/thread.jspa?messageID=902557&tstart=0

    https://forum.kanors-emr.org/showthread.php?tid=571&pid=2652#pid2652

    The KB4041681 installs version 4.0.9801.1 of msexcl40.dll.

    1. Find prior version (4.0.9801.0) of msexcl40.dll

    2. Place in another directory. They suggest the application directory, but since in the next step you will modify registry to point to this older version, it can probably go anywhere.

    3. Update registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Excel\win32 to point to the location from step 2.

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

    This problem was introduced by a recent update of Microsoft Office. there are not alternative solutions at the moment.

    0 讨论(0)
  • 2020-12-17 04:25

    I had the same problem. Changed Excel 2007 in Excel destinations. It worked. This is same as changing the provider=Microsoft.ACE.OLEDB.12.0.

    0 讨论(0)
  • 2020-12-17 04:30

    Uninstall these updates(according to your OS) and your code will start running normally

    • KB4041681 - Windows 7 SP1 and Windows Server 2008 R2 SP1
    • KB4041690 -Windows Server 2012
    • KB4041693 - Windows 8.1 and Windows Server 2012 R2
    • KB4041678 - For me this was the issue

    https://support.microsoft.com/en-in/help/4041678/windows-7-update-kb4041678

    0 讨论(0)
  • 2020-12-17 04:31

    There is one solution. Replace "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1" with Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\MyExcel.xls; Extended Properties=\"Excel 12.0;HDR = YES; After this change you will have to install 2007 Office System Driver: Data Connectivity Components from link on customer machine.

    0 讨论(0)
  • 2020-12-17 04:32

    If you are working with SSIS package then please change your Excel Sheet version 2003 to 2007 in Excel Source or Excel destination.Generally this issue due to excel version.

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