Informix Error -1143: Window is already open.
Cause and resolution
Window is already open.
This OPEN WINDOW statement names a window that is already open. Review the program logic, and see whether it should contain a CLOSE WINDOW statement, or whether it should simply use a CURRENT WINDOW statement to bring the open window to the top.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1143 fires when OPEN WINDOW references a window name that's already active — per the official
guidance, a window can't be opened a second time while it's still open.
OPEN WINDOWcalled a second time for a window that's still open, per the official guidance — the direct, only cause.- Program flow that re-executes an
OPEN WINDOWstatement without first checking or closing the previously opened window.
Solutions / Resolution
- Review the program logic to determine whether a
CLOSE WINDOWstatement should be added, per the official guidance, before the secondOPEN WINDOWcall. - Or use
CURRENT WINDOWto bring the existing window into focus, per the official guidance, instead of attempting to open it again.
Examples
Opening the same window twice
OPEN WINDOW w1 AT 1, 1 WITH FORM "order_entry"
...
OPEN WINDOW w1 AT 1, 1 WITH FORM "order_entry"
-- -1143: w1 is already open
Corrected — bring it into focus instead
CURRENT WINDOW IS w1
Diagnostic Checks
- Check whether the window was already opened earlier in the same program flow, and either
close it first or use
CURRENT WINDOWinstead of re-opening.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -1143 in this set yet.
The window is already open — close it first, or use CURRENT WINDOW to bring it into focus
instead of reopening it.