Informix Error -26540: Table cannot be fact table, it is used by query with different aliases
Cause and resolution
Table cannot be fact table, it is used by query with different aliases
This query was not accelerated because it contains the fact table more than once. The fact table is used by the query with different aliases.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26540 fires when a query isn't accelerated because its would-be fact table is referenced more than once under different aliases — per the official guidance.
- The fact table appears more than once in the query, under different aliases, per the official guidance — the direct, only cause.
Solutions / Resolution
- No action needed to "fix" this — per the official guidance, such a query runs on the database server instead; restructuring to reference the fact table once may help if acceleration is desired.
Examples
N/A
No specific triggering statement is documented beyond a fact table referenced under multiple aliases.
Diagnostic Checks
- Check whether the fact table is referenced more than once with different aliases, and restructure if acceleration is desired.
Related Errors / Related Topics
- -26510 — "Cannot identify fact table" A related fact-table diagnostic, on the fact table being unidentifiable at all rather than identified-but-aliased-twice.
The would-be fact table was referenced more than once under different aliases — such queries run on the database server instead.