The scripting step "Export Records" in Filemaker 15 doesn't seem to reset Get ( LastError ).
After the export-scripting step, the last error should be 0 (no error) but it is still the error of the step before.
An example attached.
The solution is simple: place an extra command just before the Export Records that does not disturbs the flow.
But it still is a bug.