Language:


Creating a Report Generator Report - Common Error Messages

This page lists some of the more common errors you may encounter when designing a report.
Co_typ_match with unknown types
The [Check] button will display this error if you try to print a variable using a Formula with the wrong Data Type. Usually, the variable will be a time or date and the Data Type in the Formula will be Value. The Data Type should be String for time and date variables.

You will also see this error if you hard-code a date or time in a function in a line of Code or Formula without enclosing the date or time in inverted commas. For example, the following Formula with incorrect syntax will generate this error:
DateDiff(01/01/2008,vrInvoice.InvDate);

The correct syntax is:

DateDiff("01/01/2008",vrInvoice.InvDate);

Field without a set
You will be shown this message by the [Check] button if you have placed a field in the Report Header or Report Footer sections. You cannot place fields in these sections.

Got STRING wanted VAL
The [Check] button will display this error if you try to print a variable using a Formula with the wrong Data Type. Usually, the variable will be a string and the Data Type in the Formula will be Value. The Data Type should be String for string variables.

Invalid name
The [Check] button will give you this message if you have added a non-existent field to the 'Layout' card of the report, or used a non-existent field somewhere on the 'Data' card. The most usual cause is that you have attempted to add some text to the report output, but have used the [Field] button instead of the [Text] button by mistake. Remember too that field names are case-sensitive.

Mark something first
When adding an element of any kind to the 'Layout' card, you must first select the section or Line where the element is to appear. If you do not select a section or Line, you will be given this message.

Symbol in illegal context
The [Check] button will give you this message if you use an undeclared variable in a line of Code. If you have declared the variable, you will also be given this message if the variable name contains only one character or more than 20 characters.

Unknown symbol
The [Check] button will give you this message if you use an undeclared variable in a Formula or a Print If condition. If you have declared the variable, you will also be given this message if the variable name contains only one character or more than 20 characters.
---

Creating a Report Generator Report:

Go back to: