Skip to content

Guide · Crystal Reports

Crystal report asks for a database login or won't connect after an upgrade

The report ran fine last month. Since the Sage upgrade, the new server, or the new PC, it asks for a login nobody has or stops with a database error. The report isn't damaged. It's looking for its data in a place that changed.

Updated

The short version.

A Crystal report stores where its data lives: the server, the database, and the driver it connects through. Move the data or change the driver and the report keeps asking the old place. Database > Set Datasource Location points it at the new one, table by table, and Database > Verify Database then checks that the fields still match.

Read the message

What each error is telling you.

A login box

Crystal is asking for credentials for the data source saved in the report. If the server or database it names is the old one, that's your answer.

"Failed to load database connector"

The connector the report uses, or the database client it depends on, isn't installed on this machine.

"Failed to open the connection"

The data source is unavailable or set up wrong, the server can't be reached, or the database client is misconfigured. It comes with a Database Vendor Code worth writing down.

"Failed to retrieve data from the database"

The report connected, but the server rejected its query. Usually a field, table, or stored procedure the report uses no longer exists under that name.

"This field name is not known"

A formula refers to a field that isn't in the report's database any more.

"The certificate chain was issued by an authority that is not trusted"

A newer Microsoft SQL Server driver is refusing an unencrypted or untrusted connection. See the section on drivers below.

Fix it

Work through it in this order.

  1. Write down the exact message

    The wording, and the Database Vendor Code if there is one, tell you whether the problem is the connection or the report's contents.

  2. Check the data source on that machine

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

  3. Repoint the report

    Open the report in the Crystal Reports designer and choose Database > Set Datasource Location. Update each table individually, and each subreport separately. It works on one report at a time.

  4. Verify the database, on a copy

    Choose Database > Verify Database. If a field the report uses was renamed, the Map Fields window opens so you can match old to new. Fields left unmapped are removed from the report, which is why you do this on a copy.

  5. Run it against a number you trust

    A report that opens isn't necessarily right. Compare one total with what the report printed before, or with Sage's own report.

Drivers

Newer SQL Server drivers encrypt by default.

On Sage products that run on Microsoft SQL Server, a driver change alone can stop every custom report at once.

What changed

Microsoft's ODBC Driver 18 for SQL Server turns encryption on by default, where version 17 left it off. OLE DB Driver 19 made the same change from version 18.

The message

"SSL Provider: The certificate chain was issued by an authority that is not trusted." The driver asked for an encrypted connection and didn't trust the server's certificate.

The right fix

Microsoft's recommended fix is a certificate on the SQL Server that the workstations trust.

The stopgaps

The data source's "Trust server certificate" setting, or setting encryption to Optional, gets reports running again. Microsoft treats trusting the certificate blindly as temporary.

By product

What's different in each Sage product.

Sage 100 Standard and Advanced

Reports read through the SOTAMAS90 data source, and after an upgrade custom reports go through the Sage 100 Crystal Report Conversion Wizard, which removes fields it can't find. The Sage 100 2026 upgrade guide covers the move to 64-bit.

Sage 100 Premium

Reports connect to SQL Server through OLE DB, and conversion is by hand: open the report and run Database > Verify Database.

Sage 300

New data sources use ODBC Driver 18, so the SQL Server needs a certificate (see the drivers section above).

Sage 100 Contractor

The server can be set to limit access to approved applications in Database Administration. If Crystal can't connect at all, check that first.

A whole set of reports broke at once?

Set Datasource Location works on one report at a time, and every subreport needs it too. When an upgrade breaks reports in bulk, I work through them as one job, starting with the ones your team needs first, and you know the price before any work starts.

Tell Me What You're Seeing

Questions

Connection questions.

Which version of Crystal Reports should we use?
The one Sage names for your Sage release. A newer designer isn't automatically better, because it can be a different bitness. The Crystal Reports versions guide has the table for each Sage product.
Will Verify Database break my report?
It can remove fields it can't match. If a field was renamed, map it in the Map Fields window when it opens; anything left unmapped is taken off the report. Work on a copy.
Do subreports need to be repointed too?
Yes. Set Datasource Location has to be done for each subreport separately, and a report that still fails after the main report is fixed often has a subreport pointing at the old location.
The report works on one computer and not another. Why?
Usually the data source. It may be missing on the second computer, or set up as 32-bit when the Crystal version there is 64-bit, or the other way around.

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.