Skip to main content

i used bulk insert connector to insert below array to table on postGreSQL,

[{“keyvalue”:"001"},{“keyvalue”:"002"},{“keyvalue”:"003"}]

The "keyvalue" is unique key on the table. if the array have 3 items, one item is exists in the table, then the other items would be bulk inserted to table, only one item failed due to unique key error. then I can use "error.exception.cause.updateCounts" to get items which be successfully inserted.

 

but i found the flow can work on MSSQL, but can't work on postGreSQL.

That mean, when I bulk insert three items to MSSQL, only duplicated keyvalue can't be inserted,

but when I bulk insert same items to posGreSQL, all keyvalue can't be insert only if there has one duplicated key.

4 answers
0/9000