Skip to main content

I am trying to configure to run a FME workbench as in Schedule task.

The batch file itself run fine. But something is happening when its run from Task Schedule. It seem to start a workbech, but it is not executing the workbench. This is the stout output i manage to log.

 

        FME 2022.2.5.0 (20230329 - Build 22795 - WIN64)

            FME Database Edition (floating)

                Permanent License.

           Machine host name is: xxxxxx

   Operating System: Microsoft Windows Server 2022 64-bit (Build 20348)

         Copyright (c) 1994 - 2022, Safe Software Inc.

                Safe Software Inc.

 

When i run the batch file through cmd it start logging "reading" etc after the first I assume is a license check initial License check.

I have tried to multiple things already

  • Set the "Start in" option to be the directory where the bat file (and workbenches) are located
  • absolute path
  • set the first line of batch file to cd into the directory of the workbench
  • I am running the batch file using the system admin account

 

I am running out of ideas of what it can be wrong?

You could open FME workbench as the system admin account and check the running of the workspace. For example, does it have Read access to any datasets you are reading or those you are trying to write out


You could open FME workbench as the system admin account and check the running of the workspace. For example, does it have Read access to any datasets you are reading or those you are trying to write out

As far as I can tell it has all the permissions set correctly. I am running bat file manual from the command line og just running the workbench of either system user og application user, there are no failures. So I am confused to whats wrong. Only think I can think of is that it for some reason does not like to run with parameters, dont know... I am following the documentation but i will do a test to run a wb without parameters.


Hi @so_much_more . My organisation has had a lot of trouble trying to get Windows Task Scheduler to work with Batch files and FME (and Python). It is definitely a black art.

The settings in Task Scheduler on a Windows 10 PC that work for us are as follows:

Security Settings:

  • Run only when user is logged on - ticked on. (we have also configured Windows 10 to not log the user out or go to sleep)
  • Run with highest privileges - turned off.
  • Configure for: Windows Vista, Windows Server 2008

Oh, and we have also had difficulty running FME Workbenches that use parallel processing in custom transformers. The FME Workbench runs ok when we manually execute the batchfile (that runs the .fmw), but if we run the batch file via Task Shceduler the process hangs at parallel processing part.

I hope that helps.


Reply