Error: ‘Access/Excel connection is no longer supported
Description:
Error: ‘Access/Excel(DAO) connection is no longer supported…’
Report based on Excel, Access, or a Text file fail to refresh in Crystal Reports.
Could successfully refresh the report in previous version of Crystal Reports.
When refreshing a report connecting to MS Excel, or MS Access, or a Text file in Crystal Reports, it fails with the error:
“Failed to load database information.
“Details: Access/Excel(DAO) connection no longer supported,
use another alternative if possible, e.g. ODBC/JDBC.”
Followed by: “Failed to load database information.”
Steps To Reproduce:
- In Crystal Reports 2016 or below, create a new report.
- In the Database Expert, under “Create New Connection” double click on “Access/Excel (DAO)”
- Select the MS Excel, or MS Access file to report from.
- Refresh the report, and it successfully display data.
- Save the report.
- In Crystal Reports 2020, open the same report, and refresh it.
It generates the error: “Failed to load database information. Details: Access/Excel(DAO) connection no longer supported,…”
Cause
- The report connect to Excel, Access, or a Text file using Microsoft Data Access Objects (DAO), which used Microsoft JET Engine.
- This 32bit only connectivity technology have been deprecated by Microsoft.
- Previous versions of Crystal Reports were 32bit applications, and could still use the deprecated Microsoft DAO technology to connect to Excel, Access or a Text file, as a legacy connection type.
- Crystal Reports 2020 is a 64bit application, and therefore it is no longer possible to connect to Excel, Access, or a Text file using DAO, since there is no 64bit version of this deprecated Microsoft Technology.
Resolution:
- Use an ODBC connection to connect to one of the following data sources in Crystal Reports:
- MS Excel
- MS Access
- Text file
- For MS Excel, and MS Access, you can also use an OLEDB Connection.
To use an ODBC Connection:
- Launch the 64bit Microsoft ODBC Data Source Administrator. (C:\Windows\System32\odbcad32.exe)
- In the 64bit Microsoft ODBC Data Source Administrator, under the tab “System DSN”, click “Add…”
- Select the ODBC Driver corresponding to the type of document you want to report from:
– For MS Excel, select : Microsoft Excel Driver (*.xls,*.xlsx,*.xlsm,*.xlsb)
– For MS Access, select : Microsoft Access Driver (*.mdb, *.accdb)
– For a Text file, select : Microsoft Access Text Driver (*.txt, *.csv)
Note
If you do not see the ODBC Drivers, then it is either because you have a 32bit version of MS Office installed, or do not have a 64bit MS Office installed. To download and install the 64bit version of the Microsoft Office ODBC drivers, go to the Microsoft website, and search for: “Microsoft Access Database Engine”, then download and install the 64bit Microsoft Access Database Engine.
- Then click “Finish”
- Add an ODBC DSN Name and select the MS Excel, MS Access, or Text file you want to report from, and click “OK”
- In Crystal Reports, open your report based on MS Excel, MS Access or a Text file.
- Under the menu “Database”, select “Set Datasource Location”
- In the “Replace with” section, expand “Create New Connection”, and double click on “ODBC (RDO)”
- Select the ODBC DSN created in the previous steps to report from MS Excel, MS Access, or aText file.
Note: For MS Excel, if the Excel sheets are not visible, then:
- Right click on the “Connection”, and in the contextual menu, select “Options”
- In the “Options” window, check the option “System Tables”, and click “OK”
- Back to the “Database Expert” window, right click on the connection, and select “Refresh”
- The MS Excel sheets will now display. Select the desired MS Excel sheet.
- Once connected, in the section “Replace with”, select the new ODBC connection, and in the section “Current Data Source”, select the current connection, and click the button “Update”
- Once the connection is updated, click “Close”
- Back to the report, save the report.
To use an OLEDB connection
- In Crystal Reports, open your report based on MS Excel or MS Access.
- Under the menu “Database”, select “Set Datasource Location”
- In the “Replace with” section, expand “Create New Connection”, and double click on “OLE DB (ADO)”
- Select the Microsoft Office Access Database Engine Provider.
Note
If you do not see the OLEDB Provider, then it is either because you have a 32bit version of MS Office installed, or do not have MS Office installed. To download and install the 64bit version of the Microsoft Office ODBC driver and OLEDB Provider, go to the Microsoft website, and search for: “Microsoft Access Database Engine”
- Change the Office Database type to: Excel, or Access
- Select the MS Excel, or MS Access file.
- Leave the User ID and Password blank.
- Once connected, in the section “Replace with”, select the new OLEDB connection, and in the section “Current Data Source”, select the current connection, and click the button “Update”
- Once the connection is updated, click “Close”
- Back to the report, save the report.
Leave a Reply
Want to join the discussion?Feel free to contribute!