IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

identify insert/update records failed in sql server Options · View
rautr
Posted: Wednesday, September 19, 2018 10:32:07 PM
Rank: Member

Joined: 3/6/2018
Posts: 28
Hi All,

I am trying to insert records in sql database from a csv file. How can we get count of records which are failed while inserting in database because of some sql errors like Referential integrity failed.

Or How to add records which are failed to insert in database in file.

Please help.
hicargo
Posted: Monday, October 8, 2018 11:59:54 AM
Rank: Newbie

Joined: 10/8/2018
Posts: 2
I find error handling on Mapforce very hard to understand (or just poor), but I guess one way would be to add more steps after your insert function.

Query the Table you inserted into where the records you wanted to insert do not exist (like a left outer join in SQL), then output that to a file.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.