The "IGNORE DUPLICATE INSERT ROWS" DML option is in the wrong place.
The "IGNORE DUPLICATE INSERT ROWS" DML option is after the DML expression.
For example:
APPLY
CASE
WHEN <search condition>
THEN <DML expression>
IGNORE DUPLICATE INSERT ROWS
WHEN <search condition>
THEN <DML expression>
IGNORE DUPLICATE INSERT ROWS
END
The "IGNORE DUPLICATE INSERT ROWS" DML option is in the wrong place.
The "IGNORE DUPLICATE INSERT ROWS" DML option is after the DML expression.
For example:
APPLY
CASE
WHEN <search condition>
THEN <DML expression>
IGNORE DUPLICATE INSERT ROWS
WHEN <search condition>
THEN <DML expression>
IGNORE DUPLICATE INSERT ROWS
END