- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2019 05:59 AM
Hi experts ,
In transform map how can I stop inserting new record and and to allow to update only to the existing record.
How to achieve it?
Please suggest ? thanks in advance.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2019 06:06 AM
Hi Neeta,
1) You can set Colease is "True" fr Unique field so that it will not create duplicate records an update existing one.
2) If you want to completely disallow insert then On your Transform Map Click On "Run Script" and use below code.
if (action == 'insert' ){
ignore = true;
}
Thanks,
DJ.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2019 06:42 AM
Hi
By selecting the Coalesce, it won't create new records into a table. Just it works for update the record only. [for best practice apply coalesce on Unique fields like Ids,....). I think this is only the option. Or
Using Transform Scripts: in
if(action=='insert')
{
ignore=true;
}
Regards
Raja