DB Merge Batch size issues

Hi,

I’m looking at the DB Merge when connecting to a SQL database. It looks like when “Fail on error” option is disable the merge doesn’t apply updates up to the row that errors. After that the actual data is updated. So if I set Batch size to 5 and there is only error in row 7, no actual updates will be performed up to row 10, then the rest of the data is actually updated. Even if batch size is set to 1. It looks like the Merge doesn’t apply anything until after the rows that errors. I would have thought that only the rows in the same batch should be rolled back.

Can anyone confirm if this is the intended functionality of the DB Merge node? It doesn’t seem logical. If batch sizes are set to 5, only the 5 rows in the batch that had errors, should be rolled back or ignored.

Hi there @Willem,

might this be database specific behavior? Which DB are you using?

Br,
Ivan

I’m writing/merging to a Microsoft SQL Server database.

Hi there @Willem,

seen some weird behavior with SQLite DB as well only used DB Insert but it has same option not to fail on error so suspect there might be some unexpected behavior here. Anyways someone will take a deeper look to it and come back to this topic.

Br,
Ivan

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.