- 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:02 AM
Hi
apply colease on unique field as true.
and in script
if(action==insert)
ignore=true
varsha
- 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-20-2019 02:36 AM
thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2022 01:45 AM
Hi
i want it quit opposite if the record exist in the target table then it should not update the record based on serial number
if the serial number record is available in the target table then don't update the record
if the Serial number record is not available then insert the record .
Will this work
in run script:
if (action == 'Update' ){
ignore = true;
}