The [action] variable is not available in the [field map] script in transform map in Fuji. The [action] variable was available prior to Fuji.

Steps to Reproduce

1) Create a data source into [sys_user] table. Attach the following sample CSV file:

email,first name,last name,user_name

2) Create a new transform map.
3) Create a new [field map] script:

log.info('#### Error: ' + action);
answer = 'true';

4) Run the import and transform.

The following message will appear in the log:

org.mozilla.javascript.EcmaError: "action" is not defined.
Caused by error in sys_transform_entry.010dc87d0f2402008c6ee1b8b1050ed4 at line 1

==> 1: log.info('#### Error: ' + action);
2: answer = 'true';


FieldMap scripts don't have all variables that are available in transform script fields. The only workaround is to move the logic to onBefore script.

Related Problem: PRB633363

Seen In

Eureka Patch 13 Hot Fix 5
Eureka Patch 2
Fuji Patch 10
Fuji Patch 11
Fuji Patch 13
Fuji Patch 13 Hot Fix 1
Fuji Patch 6
Fuji Patch 8
Geneva Patch 3 Hot Fix 2
Geneva Patch 5

Fixed In

Geneva Patch 4 Hot Fix 2
Geneva Patch 5 Hot Fix 3
Geneva Patch 6

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-01-19 02:39:12