How to skip a row in transform map insertion if field is empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2023 12:54 AM
Hi,
how can I skip a row insertion in transform map if field specific field is empty.
if (source.u_computer_name == '') {
skip row
}
else {
return source.u_computer_name;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2023 01:42 AM
Hi @Alon Grod ,
Update script like below.
if (source.u_computer_name == '') {
ignore=true;
}
else {
return source.u_computer_name;
}
If my answer resolves your issue then please mark it as correct and helpful.
Regards,
Namrata
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2023 01:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2023 02:50 AM
Hi @Alon Grod ,
Please use the On-before transform script to avoid the insertion like below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 01:19 AM
@Rahul Kumar Ko1 @Namrata Ghorpad Im using source script in order to populate specific field and during this process i want to check if its empty then script entire row. It should not be something with AbortAction?