What would cause a manually triggered via workflow data export to repeat itself if not the workflow?

jlaps
Kilo Sage

Trying to troubleshoot a situation where we are running an offboard workflow, and in that workflow we are exporting to a midserver the offboarded user information to have their database access revoked. This exports CSV via midserver. Per the workflow context, this is happening ONCE- one transition to and one transition from.

 

The datasource itself is inactive and does not run unless triggered from this activity.

 

When looking at the export set details though, the CSV is being exported to mid server successfully, but its doing the same user/file repeatedly. 10-12 times or so (its hard to verify since we have to look in the attachments in the export log).

 

What else could possibly be causing the same file to export, when it exports SUCCESS and the workflow instance only shows the action being called the one time?

var gr = new GlideRecord("scheduled_data_export");


gr.addQuery("sys_id", 'cd0af7921bb9a5505d8b41d5ec4bcbe1'); // sys_id of your scheduled export


gr.query();


if (gr.next()) {


gs.executeNow(gr); // if using in scoped app



//SncTriggerSynchronizer.executeNow(gr); // if using in non-scope app i.e global


}

 The above is the script that the workflow activity calls... This looks to be running just once in the workflow instance, but is the above possibly responsible for triggering it multiple times? 

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Please provide a screenshot with the configurations of the scheduled_data_export record with sys id cd0af7921bb9a5505d8b41d5ec4bcbe1

jlaps_0-1715103138603.png

There is nothing in the script tab.