Informix Error -23911: Cannot update a row twice in a joined-row update.
Cause and resolution
Cannot update a row twice in a joined-row update.
If you do an update join, the join condition and any filters must be sufficiently strict so that no row of the update target table is produced more than once for updating. The error occurred because the same row came around twice. The query was terminated abnormally.
Either clean the data source or sources, or make the query more restrictive so that no target table row is produced more than once for updating.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-23911 fires when an update join produces the same target-table row more than once for updating — per the official guidance, the join condition and filters must be strict enough to prevent this; the query is terminated abnormally when it occurs.
- A join condition/filter too loose to guarantee each target row is produced only once, per the official guidance — the direct, only cause.
Solutions / Resolution
- Clean the data source(s), per the official guidance, or
- Make the query more restrictive so no target row is produced more than once, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an under-constrained update join.
Diagnostic Checks
- Check the join condition/filters for duplicate matches against the same target row, and tighten them or clean the source data.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -23911 in this set yet.
An update join produced the same target row more than once — tighten the join/filters or clean the source data.