Error: "Failed to retrieve data from the database Details: [Database Vendor Code: 31740]" (DSN is corrupt)
Description
Cause
The DSN used on the report is missing or corrupt.
Resolution
Remove the data source and add it back. If your report is using the Timberline Data Source:
From the Windows Start menu, select All Programs, ODBC, 32 bit ODBC Administrator.
Select Timberline Data Source and click Remove.
Click Add.
Select Timberline Data and click Finish.
Enter Timberline Data Source as the Data Source Name.
Select Accounting Data Folder from the Database Type dropdown.
Click Select Folder and select the applicable company and click OK. Note: If you have multiple companies, select any active company.
Click Options:
Select Standard Descriptions from the Table and Field Naming drop down.
Select Use maximum table segment size.
Clear Shorten field and table names.
Click OK and close.
Note:
If this is a Billing Invoice format that has the error, creating the TS Billing Field Names DSN may also resolve the issue. See article 19968 " below for steps on how to set up this DSN.
This may be related to subreports in the BLNP and BLCP and error only occurs when opened from the Billing application. Instead, launch Contract based Invoices or Invoice Formats from the Sage Desktop.