Informix Error -2015: An open comment symbol, {, was found inside an already open comment on line line, character column. This could be due to a failure to close the previously opened comment, which was begun on line line, character column.
Cause and resolution
An open comment symbol, {, was found inside an already open comment on line line, character column. This could be due to a failure to close the previously opened comment, which was begun on line line, character column.
Nested comments are not supported. Review the form specification, and inspect all comments. Check that each open brace has a matching close brace.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-2015 fires when a form specification contains a nested { comment-open symbol inside a
comment that's already open — per the official guidance, this is typically because an earlier
comment was never closed, and a later, unrelated { gets misread as illegally nested inside it.
- A previously opened comment never closed, per the official guidance — the direct, named
cause; a later legitimate
{(comment or otherwise) then falls inside the still-open one.
Solutions / Resolution
- Review all comments in the form specification to ensure each opening brace has a corresponding closing brace, per the official guidance.
- Use the line/character positions given in the message for both the new
{and the earlier, still-open comment to locate the actual unclosed comment.
Examples
An unclosed earlier comment
{ This is the first comment
ATTRIBUTES
order_id = order_id; { a second comment, but the first was never closed }
-- -2015: the second { falls inside the still-open first comment
Corrected
{ This is the first comment }
ATTRIBUTES
order_id = order_id; { a second comment, properly separated }
Diagnostic Checks
- Use the reported line/character positions for both the new
{and the earlier open comment to locate the missing}.
Related Errors / Related Topics
- -2016 — "A comment has been opened, but not closed." A related comment-syntax error, for a comment left open at the end of the specification rather than one nested inside another.
An earlier comment was never closed — use the reported positions to find and close it.