Skip to content

calc/exclude-balance

Starts at Error. It reads Calc Script files in Rules, Templates, and Scripts, and needs nothing but the file you have open.

Every EXCLUDE( must have a matching ENDEXCLUDE, counting EXCLUDE blocks inside other EXCLUDE blocks. An EXCLUDE( that is never closed is underlined at the EXCLUDE(. An ENDEXCLUDE with nothing to close is underlined at the ENDEXCLUDE.

Case doesn’t matter, and a space before the bracket is fine. Comments and text inside quotes are ignored.

This is a separate Lint Rule from calc/fix-balance, so you can change one without touching the other.

Oracle won’t run a script whose EXCLUDE is unbalanced, and its error tends to point at the end of the script rather than at the EXCLUDE. EXCLUDE blocks are usually short and sit inside a FIX, so a missing ENDEXCLUDE is easy to miss when you read the script.

FIX("Budget", "Working", "FY26")
EXCLUDE("E200")
"Net Income" = "Revenue" - "Total Expenses";
ENDFIX

The EXCLUDE is never closed, so line 2 is underlined:

This `EXCLUDE(` has no matching `ENDEXCLUDE`.

An ENDEXCLUDE with no EXCLUDE( above it reads:

This `ENDEXCLUDE` has no matching `EXCLUDE(`.

Corrected:

FIX("Budget", "Working", "FY26")
EXCLUDE("E200")
"Net Income" = "Revenue" - "Total Expenses";
ENDEXCLUDE
ENDFIX

Change its level (Error, Warning, Info) or turn it off in the Lint Rules panel, or excuse one file with a Lint Exception.

A Template or Script that opens an EXCLUDE on purpose, for the Rule around it to close, is the usual reason for an Exception. Keep the Lint Rule on for everything else.