Informix Error -4660: Report parameters cannot take object references.
Cause and resolution
Report parameters cannot take object references.
A formal argument cannot specify a class name (or FOREIGN) as its data type.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4660 fires when a report's formal parameter is declared with a class name (or FOREIGN) as
its data type — per the official guidance, this isn't supported.
- A report parameter declared with a class name (or
FOREIGN) as its type, per the official guidance — the direct, only cause.
Solutions / Resolution
- Use a supported scalar/record type for report parameters instead of an object reference.
Examples
A report parameter declared with a class type
REPORT myreport(cust Customer)
-- -4660: report parameters can't take an object reference
Diagnostic Checks
- Check every report's parameter list for a class-typed (or
FOREIGN-typed) parameter, and replace it with a supported type.
Related Errors / Related Topics
- -4659 — "The CHAR (*) type is not allowed for report parameters." A related
report-parameter type restriction, about
CHAR(*)rather than object references.
A report parameter is declared with a class (or FOREIGN) type, which isn't allowed for
report parameters.