Informix Error -50403: INSERT and SET in ixList, ixMultiset, and ixSet are only allowed if the ixValue object is of the same class or derived from the ixValue object that was specified in the constructor.
Cause and resolution
INSERT and SET in ixList, ixMultiset, and ixSet are only allowed if the ixValue object is of the same class or derived from the ixValue object that was specified in the constructor.
An attempt was made to provide an incompatible element to an ixList, ixMultiSet, or ixSet object during concatenation, insertion, or replacement. An element of an object of the same class (or derived from ixValue) is necessary to ensure compatibility with the ixList, ixMultiSet, or ixSet object. To prevent this error, you might need a compatibility check during element construction.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-50403 is raised by the ixList class in the Window Painter GUI builder library — per the official guidance:
An attempt was made to provide an incompatible element to an ixList, ixMultiSet, or ixSet object during concatenation, insertion, or replacement. An element of an object of the same class (or derived from ixValue) is necessary to ensure compatibility with the ixList, ixMultiSet, or ixSet object. To prevent this error, you might need a compatibility check during element construction.
- INSERT and SET in ixList, ixMultiset, and ixSet are only allowed if the ixValue object is of the same class or derived from the ixValue object that was specified in the constructor, per the official guidance — the direct, documented condition.
Solutions / Resolution
- Check the specific value or object state the message names, per the official guidance, against the constraint it describes.
Examples
N/A
No specific triggering statement is documented beyond the class-library condition described above.
Diagnostic Checks
- Check the specific value, object state, or call sequence that
ixListflags here, against the constraint the official guidance describes.
Related Errors / Related Topics
- -50405 — "Item number for SET must be within the existing size of the ixList, ixMultiSet, or ixSet." Another
ixList-related condition in this set. - -50402 — "INSERT and SET in ixList, ixMultiset, and ixSet are only allowed if the ixValue object is non-NULL." Another
ixList-related condition in this set.
INSERT and SET in ixList, ixMultiset, and ixSet are only allowed if the ixValue object is of the same class or derived from the ixValue object that was specified in the constructor.