Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Abort transform map using on start script

Eli Guttman
Tera Guru

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?

2 REPLIES 2

Anand Kumar P
Tera Patron

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

 

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