Flows not executed on Import Set staging table records in Paris and newer


Description

When importing records via an Import Set the insert operation to the staging table (e.g. imp_user) is run with a call to 'setWorkflow(false)'. That setWorkflow(false) function call stops Business Rules/Workflows being run on Import Set staging tables. It also has the effect, in Paris and newer, that Flows will not be run. However, on Orlando and previous releases Flows were still run even after the setWorkflow(false) function call.

Steps to Reproduce

  1. Login to any OOB Paris or newer instance
  2. Open Flow Designer, create a new Flow: Name = Trigger on imp_user record, Trigger: record reated on table imp_user, Action: Log. Message: Flow Trigger on imp_user record ran
  3. Save and activate
  4. Sys Import Sets->Load Data. Existing table->imp_user, Load attached file 'PRB1480563 Example Data.csv' (note: you only need to load the data, transform is not needed here)
  5. Check Info messages in System Log and Flows executed
  6. Actual: No sign of 'Flow Trigger on imp_user record ran' message and Flow 'Trigger on imp_user record' hasn't been executed
  7. Expected (customer expecation in CS5173965, as well as previous behaviour in Orlando and older): Flow is triggered
  8. Workaround: System Property with name trigger_engine.ignore.set_workflow, type true|false and value true
  9. Repeat STR above

Actual and Expected (restores Orlando and previous release behaviour): 'Flow Trigger on imp_user record ran' message is in syslog and Flow 'Trigger on imp_user record' has been executed

Workaround

This is expected behavior and by design in all currently supported releases.

 

Recommended Workarounds:

If you are not able to use the above preferred workaround method, then you can do the following:


Related Problem: PRB1480563