Skip to content

Guide · Sage 100

Sage 100 UDF not showing in Crystal Reports after Verify Database

You created a Sage 100 UDF in Custom Office, maybe put it on the Sales Order entry screen, and it works there. Then you open the invoice in Crystal Reports, run Verify Database, and the field isn't there. Crystal doesn't read the UDF from the main table. It reads the report's work table, so the UDF has to be added there first. Below is the order Sage documents, and what to check when verifying changes nothing.

Updated

The short version.

Forms and most standard reports read a temporary work table, not your main tables. Add the UDF to that report's work table in User-Defined Field and Table Maintenance and accept the update prompt. Then open the .rpt Sage really prints, from Report Manager or the Designer option, and run Database > Verify Database. The field appears under the work table with a UDF_ prefix.

How it works

How a UDF gets from Custom Office into Crystal.

You create a UDF in Custom Office > User-Defined Field and Table Maintenance, on a table such as SO Sales Order Header. Sage adds a UDF_ prefix, makes it uppercase, and swaps spaces for underscores, so CONTRACT NO becomes UDF_CONTRACT_NO in Crystal. When you click OK, Sage asks whether to update the ODBC data dictionary and UDF data files; click Cancel and the change waits as pending until someone runs Summary of Pending Changes and Update All. Putting the field on an entry screen (Customizer Selection) changes the panel only, not any Crystal form.

Here's the part that catches most people. Graphical forms (invoices, sales orders, picking sheets) and standard reports print from temporary work tables, which Sage fills when you click Print or Preview and clears afterward. So the UDF has to exist on the work table too, with the original UDF as its data source. Sage's own example adds a UDF to SO Sales Order Header, adds it again to SO Sales Order Work, then verifies the form.

Common causes

Why a Sage 100 UDF is not showing in Crystal Reports.

Roughly in the order I'd check them.

It's on the main table, not the work table

The UDF exists on SO Sales Order Header (or AR Customer, or GL Account) but not on the work table the form prints from, and Verify Database only shows fields on the tables the report uses. Add it to the work table, such as SO Sales Order Work for a sales order form.

The update is still pending

If Cancel was clicked in the User-Defined Fields window, the change is pending, and a Pending folder appears at the bottom of the module list. Run Summary of Pending Changes and Update All.

You verified a different copy of the .rpt

When you choose Designer, Sage copies the form to a company folder (for example MAS90\MAS_ABC\Reports\AR_INVOICEPRINTING\ plus the form code) or to MAS_SYSTEM. Verifying the template in MAS90\Reports changes nothing Sage prints. Open the form through Report Manager or the Designer option instead.

The report was already open

Sage users on the Community Hub report that Verify Database missed a new UDF when the report was already open in Crystal, or when Crystal was started on its own instead of through Designer in Sage. Close Crystal and reopen the report from inside Sage.

The report uses another data source

A custom report built on a separate DSN reads whatever MAS90 folder that DSN points at. Sage users on the Community Hub report a UDF showing through SOTAMAS90 but not through a second DSN with a different path.

Premium: the change didn't reach SQL Server

On Premium, Sage users on the Community Hub report that UDF changes saved for later sometimes don't reach the database. Their workaround: make a small edit to the same table and update immediately.

The update couldn't write to every company

Sage's installation guide says that with alternate data directories, the account running on the Sage 100 server needs Change permission on every share point folder that holds company data, or records can't be updated.

It shows, but prints blank

That's a data problem. Either the work table UDF points at the wrong data source or column, or the value never reached that record: a sales order header UDF has to be mapped to the SO Invoice Header first. Browse Field Data shows nothing for a work table, because it's empty except while a form prints.

Fix it

Add the UDF to a Sage 100 form or report, step by step.

This is Sage's documented order. Back up the .rpt first; Sage warns never to modify the default template in MAS90\Reports.

  1. Create the UDF on its source table

    Custom Office > User-Defined Field and Table Maintenance. Pick the module and table (for example Sales Order > SO Sales Order Header), click Edit Fields, then Add, and finish the Add Field windows. Click OK, and OK again when asked to update the data dictionary and UDF data files.

  2. Add it to the report's work table

    In the same window, select the work table (for example SO Sales Order Work), click Edit Fields, then Add. Enter the UDF's name, set Data Source to the table that holds the UDF, and pick it in Column. Report work tables only accept a business object source. Click OK through the windows and accept the update prompt.

  3. Open the copy Sage really prints

    Library Master Setup > Report Manager, select the form, click Maintain, select the form code and click Design (for a report, click Design in Report Manager). Or use the drop-down arrow at the top right of the printing window and choose Designer.

  4. Run Verify Database

    In Crystal Designer, Database > Verify Database. On Standard and Advanced, sign on with the company and user, then click OK when told the database has changed. On Premium it opens the OLE DB (ADO) window; leave Integrated Security checked if your Windows account can read the SQL database, or enter a SQL logon.

  5. Place the field and save

    Insert > Field Object, expand Database Fields and the work table, and drag the UDF_ field onto the report. Save, then print or preview from Sage (not from Crystal) to see real data.

Forms vs reports

Where Crystal reads the UDF from, by report type.

Where a Sage 100 UDF has to be added for each kind of Crystal output
What you're printingCrystal reads fromWhat to add
Graphical form (sales order, invoice, picking sheet)The form's work table, e.g. SO Sales Order WorkThe UDF on its source table, then on the work table
Standard report, journal or registerThe report's work table, e.g. GL Chart of Accounts workSame two steps; only some modules allow it
Custom report built on the data tablesThe tables you linked, e.g. SO_SalesOrderHeaderJust the UDF; then Verify Database
Invoice from a sales orderThe invoice side, not the orderMap the order header UDF to SO Invoice Header first

The data source

Checking the ODBC data source (SOTAMAS90) and the Premium connection.

You don't normally need to refresh anything here: Sage updates the ODBC dictionary itself when a UDF is created or changed. Check the connection only when the field still won't appear.

Standard and Advanced: SOTAMAS90

Crystal reads Sage 100 data through the SOTAMAS90 data source. Sage's installation guide has you test it in the ODBC Data Source Administrator: double-click SOTAMAS90 on the User DSN tab, then Test Connection on the Debug tab. If a report uses a different DSN, make sure it points at the same MAS90 folder.

Premium: OLE DB (ADO) to SQL Server

On Premium, Crystal connects to the SQL Server database with your Windows account or a separate SQL logon, and Sage notes that dictionary changes to a linked table are then available in Crystal Designer.

The right ODBC Administrator

A data source made in the 32-bit ODBC Administrator doesn't show in the 64-bit one, which matters after a Sage 100 2026 upgrade. The ODBC architecture mismatch guide linked below covers both paths.

Field still missing, or printing blank?

Send me the form or report, the UDF and the table you created it in, and your Sage 100 version. I've worked in Sage for over 20 years. I'll say in writing what's wrong and give you a fixed price, agreed before work starts. No retainer, no minimum, and your Sage partner stays yours.

Tell Me What You're Seeing

Questions

Sage 100 UDF and Crystal questions.

Why does my UDF show on the Sales Order screen but not in Crystal?
Adding a UDF to a screen (a panel, in Customizer) doesn't add it to any Crystal form. Forms print from a work table, so the UDF has to be added to that work table in User-Defined Field and Table Maintenance, and then the form has to be verified in Crystal.
Can I add a UDF to any standard Sage 100 report?
Sage says UDFs can go on graphical forms and custom reports, and that for some modules you can also add them to standard reports, journals and registers. If the report's work table isn't offered in User-Defined Field and Table Maintenance, a custom report built on the data tables is the usual way round it.
Is a UDF only for one company?
No. Sage 100 UDFs apply to every company; you can't keep a different set per company. Custom forms are different: a form can be saved for one company or, in MAS_SYSTEM, for all of them.
Will my UDFs and custom forms survive a Sage 100 upgrade?
Sage notes that some UDFs need to be re-created and mapped in the newer version after an upgrade. Custom Crystal reports and forms also go through the Crystal Report Conversion Wizard, which removes fields that no longer exist in the data source and lists them, so test your forms after the upgrade.

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 request2 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.