Informix Error -4452: The function (or report) name has already been defined.
Cause and resolution
The function (or report) name has already been defined.
No two functions can have the same name. No two reports can have the same name. Change one of the two occurrences of name to a different name. Only NewEra returns this error.
-4452 The function (or report) name has already been defined. Function and report cannot both have the same name.
Each function (or report, which is similar to a function) must have a unique name within the program. Change the function or report name.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4452 covers two related variants, per the official guidance: no two functions can share a name, no two reports can share a name, and — per the 4GL-specific variant's expanded wording — a function and a report can't share a name either. Each function/report must have a unique name within the program.
- Two functions, two reports, or a function and a report sharing the same name, per the official guidance — the direct, only cause.
Solutions / Resolution
- Change one of the two occurrences to a different name, per the official guidance.
Examples
A duplicate function/report name
FUNCTION save()
...
END FUNCTION
REPORT save()
-- -4452: "save" is already defined as a function
Corrected
REPORT save_report()
...
END REPORT
Diagnostic Checks
- Check every function and report name in the program for duplicates, and rename one of any pair that collides.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -4452 in this set yet.
Two functions, two reports, or a function and a report share the same name — rename one of them.