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

Transform Map in Synchronous Mode - Coalesce Field Script Called Twice

Martin76
Kilo Expert

I have noticed a strange behaviour in executing Transform Maps in synchronous mode (i.e. via background script or web service).

Normally (in asynchronous mode), transform scripts are executed in this order:

  1. onStart
  2. field source script for coalesce fields
  3. onBefore
  4. other source scripts
  5. transform script
  6. ...

However, with synchronous mode, field source scripts for coalesce fields is called twice:

  1. field source script for coalesce fields (extra call)
  2. onStart
  3. field source script for coalesce fields
  4. onBefore
  5. other source scripts
  6. transform script
  7. ...

Of course, if your coalesce field source script relies on anything declared in an onStart script, you are out of luck.

Is it a bug or a feature?

10 REPLIES 10

Community Alums
Not applicable

For those experiencing this issue, I submitted a HI ticket and the engineer told me that this has been fixed in Quebec.

Below is the PRB:
PRB1239329:  Transform map scripts are running in a different order for sync and async