Skip to content

calc/member-exists

Starts at Error. It reads Calc Script files in Rules, Templates, and Scripts. It needs the Pod’s members and aliases, so it stays silent until they are in the Pod Folder: after a Pull, or an Import from a Snapshot.

Every name the script uses where a member belongs is looked up in the application’s members and aliases:

  • A name that matches no member and no alias is an error.
  • An alias that matches more than one member is a warning, because the script doesn’t say which one it means.
  • A real member name always wins over an alias with the same spelling.
  • Case doesn’t matter, the same as in Essbase.

Some functions accept only a fixed set of words, such as SKIPNONE or SKIPMISSING in @AVG. A word outside that set is an error, and the message lists the words the function accepts.

Comments aren’t checked, and neither is message text such as the first argument of @RETURN. Variables declared with VAR anywhere in the application aren’t mistaken for members.

A misspelled member doesn’t fail when you save. It fails later, on the Pod, and Oracle’s error points at the statement rather than the word. Catching it as you type keeps the round trip short. An ambiguous alias is worse: the script runs, but on whichever member Essbase picks, which may not be the one you meant.

FIX("Budget", "Working", "FY26", @RELATIVE("Total_Entity", 0))
"Net Incme" = "Revenue" - "Total Expenses";
ENDFIX

The misspelled name is underlined, and the message reads:

"Net Incme" is not a known member or alias in this Pod's App Core.

App Core is the application’s dimensions, members, and aliases, as a Pull or a Import from a Snapshot brought them down.

An alias that matches two members reads:

Alias "Total" is ambiguous (matches Total_Product, Total_Entity). Use the member name.

A word a function doesn’t accept reads:

"SKIPBTH" is not a valid keyword for @AVG. Expected: SKIPNONE | SKIPMISSING | SKIPZERO | SKIPBOTH.

Corrected, with the member spelled the way the application has it:

FIX("Budget", "Working", "FY26", @RELATIVE("Total_Entity", 0))
"Net Income" = "Revenue" - "Total Expenses";
ENDFIX

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

While the Lint Rule is at its starting level, ambiguous aliases show as warnings and everything else as errors, so the two stay easy to tell apart. Once you set its level yourself, every finding from it uses your level.

If a member was added in EPM after your last Pull, Pull again before you reach for an Exception. The finding clears once the Pod Folder knows the member.