AnsweredAssumed Answered

Issue: Trigger after Export Records produces Error 1

Question asked by LaRetta_1 on Aug 28, 2018
Latest reply on Sep 6, 2018 by mrwatson-gbs

Product and version: tested on FMPA 16.0.5 and 17.0.2

OS and version: tested on Mac 10.13.6 and also confirmed on Windows ( version unknown )


Description: An Error Code 1 is generated immediately after an Export Records step if it is followed by a trigger script.


How to replicate: Please see attached file Export_Trigger_Error.fmp12 ( confirm with your debugger on )


Workaround (if any):  None

It doesn't matter if the Export Records succeeds ( per example ) nor whether the trigger script fails or succeeds ... or even is empty; simply the fact that the trigger ran after the Export Records step ran caused it to fail. If you add a Show Custom Dialog [ Get ( LastError ) ] to the trigger, it is also clear.


In FMPA 15, it generates an Error Code 1 in the Show Custom Dialog[] of the Export script so this issue has been around for a while.