Skip to content

Guide · Crystal Reports

Crystal Reports "Failed to load database information" in Sage

The report won't preview or print, and Crystal says it failed to load database information. That sentence is only the wrapper. The line after "Details:" names the real problem, and on a Sage system it's usually the data source, the database connector, or a 32-bit and 64-bit mismatch on that one computer.

Updated

The short version.

Crystal couldn't reach the report's data before it started reading it. Read the Details line: it names the connector or data source that failed. Then check whether the report fails on every computer or only one. Only one means that computer's data source or Crystal install. Every computer usually means an upgrade changed the data source the report expects.

Read the details

What the line after "Details:" is telling you.

"The database connector '…dll' could not be loaded"

SAP's knowledge base lists this for Crystal Reports 2013, 2016 and 2020. The connector named in the message, or the database client it depends on, isn't installed or can't load on this computer.

"Data source name not found" or "architecture mismatch"

The data source doesn't exist in the ODBC Administrator that matches the program's bitness, or its driver is the other bitness. The ODBC architecture mismatch guide linked below covers both messages.

A logon box instead of an error

Crystal found the data source but needs credentials for it. On Sage 100 Premium that means the Windows account has no read access to the SQL database and no separate SQL logon was set up.

Fix it

Check it in this order.

  1. Write down the whole message

    Copy the Details line word for word, including any file name ending in .dll. That line decides everything that follows.

  2. Try it on a second computer

    If the report runs for someone else, the report is fine and the problem is on the first computer: its data source, its ODBC driver, or its Crystal install.

  3. Open the ODBC Administrator that matches

    A data source made in the other administrator (32-bit or 64-bit) doesn't appear in Crystal's list. The ODBC architecture mismatch guide has both paths and which Crystal versions are which.

  4. Test the data source

    For Sage 100, the installation guide has you test the SOTAMAS90 data source from the ODBC Administrator's Debug tab with Test Connection. If the test fails, the report never will.

  5. Repoint and verify the report, on a copy

    In the Crystal designer, Database > Set Datasource Location points the report and each subreport at the right data source, and Database > Verify Database checks that the fields still match. Fields it can't match are removed, so work on a copy.

By product

Where it comes from in each Sage product.

Sage 300 CRE (Timberline) 26

From 26.1, custom reports that use 32-bit data sources must be converted to 64-bit (the Crystal versions guide has the details), and custom Service Management reports that use Native Btrieve must be changed to ODBC. Opening Purchasing, Inventory or Service Management without administrator rights can fail to create the data sources, so Sage says to run them as administrator and open each company at the server first.

Sage 300 CRE data source

The Timberline Data Source must point to the company's data folder. Check it in the 64-bit ODBC Administrator under System DSN, then Configure.

Sage 300 (Accpac)

Sage 300 is a 32-bit program, so its data sources go in the 32-bit ODBC Administrator. On the Sage Community Hub (not in Sage's documentation), a "crdb_p2bpipe.dll could not be loaded" error after a product update was fixed by repairing the Sage 300 install and reapplying the update.

Sage 100

After an upgrade, custom reports go through the Crystal Report Conversion Wizard. If a field the report uses was removed, Sage documents a different message: "SAP Crystal Reports error in printing."

Still failing after all that?

Email the .rpt file and the exact message, and tell me your Sage product and version. I'll find which piece is missing and reply in writing with a fixed price to fix it, agreed before any work starts.

Tell Me What You're Seeing

Questions

Questions about this error.

Is the report file damaged?
Usually not. The message means Crystal couldn't connect to the data before reading it. If the same report runs on another computer, the file is fine.
Why did it start right after a Sage upgrade?
Upgrades change data sources, drivers and Crystal runtimes. Sage 300 CRE 26.1, for example, moved reports to a 64-bit runtime, so reports built on 32-bit data sources have to be converted.
Should I reinstall Crystal Reports?
Not first. Read the Details line and check the data source. Reinstalling helps when the message names a connector that can't be loaded, not when the data source is missing or points at the wrong place.

Contact

Tell me what you need.

Tell me about your project or the problem you need solved.

Email me at andy@codingandy.com, text or leave a voicemail at 612-249-6882, or use the form.

Add project details (optional)Company, phone, Sage product, and type of request1 added

Sage product

Optional. Skip it if your request isn't about Sage.

What do you need?

No retainer, no obligation. You'll get a scope and price before any work starts, and I never contact your current Sage partner without your permission.