I have set up a FME workspace that works fine and is scheduled to be started every day on FME server. It has a python startup script included that also works fine and has been tested.
The trouble is that the scheduled job sometimes fails, telling that the python script has produced an error :
Python Exception <NameError>: name 'ftplib' is not defined Error executing string `# -*- coding: utf-8 -*-
The weird thing is that it happens sometimes, not every time. For now, when the process fails I just resubmit the job and it works almost everytime (it happened once that it fails again).
The ftplib is definitly included in the python environment (I tried to start <<path to fme server>>\fme.exe python and then the utf8 thing followed by import ftplib, it works flawlessly).
So I don't know where the issue can be, FME? FME Python? My script? Environment related issue?
Thank you for your help.
Anthonin