Informix Error -26974: Sharded tables are not supported inside procedure or function.
Cause and resolution
Sharded tables are not supported inside procedure or function.
You cannot include a sharded table in a procedure or function.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26974 fires when a sharded table is referenced inside an SPL procedure/function — per the official guidance.
- A sharded table is referenced inside a procedure or function, per the official guidance — the direct, only cause; not supported.
Solutions / Resolution
- Don't reference sharded tables from within a procedure/function, per the official guidance — query them directly instead.
Examples
N/A
No specific triggering statement is documented beyond a sharded table referenced inside a routine.
Diagnostic Checks
- Check the procedure/function body for sharded-table references, and remove them.
Related Errors / Related Topics
- -26973 — "Triggers are not supported in sharded queries." A related sharding restriction, on triggers rather than procedures/functions.
A sharded table was referenced inside a procedure/function, which isn't supported — query it directly instead.