Yeah I ran into that as well. It should mean that you need to install the provider, which I think comes with the install of the Microsoft Access Database Engine.
I think the link is broken that is in the OLEDB guide because Microsoft no longer supports that version of the install. So, I believe I installed this:
https://www.microsoft.com/en-us/download/details.aspx?id=54920
I have some notes that indicate I ran into some issues with 32 vs 64 bit. It looks like I was able to install the 32bit version and it worked. But in any case, if you run into an error saying 'You cannot install the *-bit version of Microsoft Access Database Engine 2016...", then I can give more info on that.
------------------------------
Dave Morris
3Ci @ Southern Company
Atlanta, GA
------------------------------
Original Message:
Sent: 12-27-2019 10:40
From: Jonathan Holstine
Subject: OLEDB - Excel - Connections - ACE vs JET
Hi Dave,
I think you are correct. I put your string in and that error went away. It now gives the following registration error. I see a few different threads with numerous different ideas on what may cause this error. Did you encounter this when starting out?
Could not execute code stage because exception thrown by code stage: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
Thanks,
Jon
------------------------------
Jonathan Holstine
Systems Accountant
Interior Business Center
America/Denver
Original Message:
Sent: 12-27-2019 07:27
From: Dave Morris
Subject: OLEDB - Excel - Connections - ACE vs JET
Is there any chance that the string is just not formatted properly? I see three things that could be causing the issue.
- There's a NewLine just before Extended Properties. I've no idea if that could cause the problem here.
- There's a semicolon ; at the end of the string, but I would think there shouldn't be one at the end since it is used to delimit/separate elements in the string.
- There's no single quote after Excel 12.0 Xml.
The reason I think it's one of the three things above is that the error says the format of the string has an issue started at index 130, and the 130th character in the string is at that NewLine and/or it is the beginning of the Extended Properties element which has two problems in it.
So, here's the string I'd suggest to try. I only edited those few things I mentioned above: "Provider=Microsoft.ACE.OLEDB.12.0;Data Source='P:\Libraries\FSB\AOBRobotics\MCC\Invoices - MCDR\NPL CIF MCDR - November 2019.xls';Extended Properties='Excel 12.0 Xml'"
------------------------------
Dave Morris
3Ci @ Southern Company
Atlanta, GA
Original Message:
Sent: 12-26-2019 14:13
From: Jonathan Holstine
Subject: OLEDB - Excel - Connections - ACE vs JET
I'm attempting my first ever Excel OLEDB. I'm not sure exactly where the problem lies. I'm wondering if it is using JET vs ACE connection.
When I ran it through using Microsoft.Jet.OLEDB.4.0 I got it to go through but it could not find the file. I was wondering if that is because I'm on a new version and the Jet appears to be for older excel. In trying to change to the ACE connection I am running into problems of not conforming. Details below. Any ideas?
Could not execute code stage because exception thrown by code stage: Format of the initialization string does not conform to specification starting at index 130.
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source='P:\Libraries\FSB\AOBRobotics\MCC\Invoices - MCDR\NPL CIF MCDR - November 2019.xls';
Extended Properties='Excel 12.0 Xml;"
Any ideas on this....?
------------------------------
Jonathan Holstine
Systems Accountant
Interior Business Center
America/Denver
------------------------------