The CreatorCon Call for Content is officially open! Get started here.

Transform map updating record even if field map is empty?

astanley
Tera Contributor

I have a transform map with two field maps:

end_date

user_name

 

The transform map coalesces on the user_name field and updates the end_date field on the user table. I also have a before transform script for if the action is insert, then ignore. 

It looks like even if the end_date is empty from the source staging table, the user record is still updated. I only have two field maps so I'm unsure why it is updating if there is nothing to update? I have the check box for "Copy empty fields" unchecked/set to false.

 

How can I stop the transform map from updating the record if a username match is found, but the end date field is empty?

1 ACCEPTED SOLUTION

Mohit_Gupta
Tera Guru
Tera Guru

Hi @astanley 

 

Please use below example

Use an OnBefore tranform script, 
if (source.end_date.nil()){
ignore = true;
}

I hope this helps 

Please mark my answer correct if this helps you 

Thanks

Mohit

View solution in original post

1 REPLY 1

Mohit_Gupta
Tera Guru
Tera Guru

Hi @astanley 

 

Please use below example

Use an OnBefore tranform script, 
if (source.end_date.nil()){
ignore = true;
}

I hope this helps 

Please mark my answer correct if this helps you 

Thanks

Mohit