Informix Error -975: Invalid object and object mode combination.
Cause and resolution
Invalid object and object mode combination.
The user tried to create a new object in an object mode that does not apply to that object type, or the user set the object mode of an existing object to a mode that does not apply to that type of object. For example, if the user tries to create a trigger in the filtering mode or set an existing trigger to the filtering mode, the user receives this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-975 is the general rule underlying several of the violations-table/filtering-mode errors in this range: not every object mode applies to every object type, and this error fires whenever a statement tries to pair the two incorrectly.
- Creating a new object in an object mode that doesn't apply to its type, per the official guidance's own example — e.g. creating a trigger in filtering mode.
- Setting an existing object's mode to one that doesn't apply to its type, per the official guidance — the same restriction, applied to a mode change rather than creation.
Solutions / Resolution
- Check which object modes are valid for the object type in question before creating the object or changing its mode — per the official guidance, filtering mode specifically does not apply to every object type (triggers being the named example).
- Use a mode that is valid for the object type, or reconsider whether the intended behavior (e.g. capturing violations) is achievable for that object type at all.
Examples
The documented example: a trigger in filtering mode
CREATE TRIGGER my_trigger INSERT ON mytable ... ;
-- attempting to place my_trigger in filtering mode
-- -975: Invalid object and object mode combination.
Diagnostic Checks
- Identify the object type involved (constraint, unique index, trigger, etc.) and confirm which modes the documentation lists as valid for it.
- Re-check the statement for the specific mode keyword being applied (e.g.
FILTERING,DISABLED,ENABLED) against that object type's supported modes.
Related Errors / Related Topics
- -971 — "Integrity violations detected." A data-content failure within a valid object/mode pairing, distinct from -975's type-level mismatch.
- -973 — "Cannot insert from the violations table to the target table." A specific consequence of a table having filtering-mode objects, the same feature -975 gates who can use.
- -974 — "Cannot drop not null constraint on the serial column." Another type-specific restriction on what operations apply to which object/column types.
-975 means the object type and the mode requested for it simply don't go together — check which modes the documentation lists as valid for that specific object type.