Abort transform map using on start script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2024 07:15 AM
Hi,
For a certain data source, i have few transform maps that are running one after the other. I would like to add a condition before each transform map, and according to that condition, abort the the transform map ( and continue with the others).
Can i do that using on start transform script? what would be the correct script that will allow be to abort / skip that transform map?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2024 08:19 AM - edited 01-21-2024 08:20 AM
Hi @Eli Guttman,
Use below script with onbefore transform map script as per your requirement
if(source.u_field1 == '') // Put your condition to check here
{
ignore = true; //ignores tranformation of the row if condition matches
}
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2024 08:26 AM
Thank you!
So if i understand correct, this will be on a ROW level?
Is there a way to stop the whole transform map?
Since this is an "on start" transform script, it run even before any row was executed and this is the place i want to stop the process