Skip to main content
Question

FME in schedule task start FME but wont run WB

  • December 14, 2023
  • 5 replies
  • 121 views

so_much_more
Supporter
Forum|alt.badge.img+6

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?

5 replies

j.botterill
Influencer
Forum|alt.badge.img+34
  • Influencer
  • December 15, 2023

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


so_much_more
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • December 15, 2023
j.botterill wrote:

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.


thejando
Contributor
Forum|alt.badge.img+4
  • Contributor
  • September 30, 2024

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.


dbklingdom
Contributor
Forum|alt.badge.img+7
  • Contributor
  • February 3, 2025

Hello,

More issues.  I have added two new WB to a batch file we run in Task Scheduler, which has 12 executables 10 running, but they do not run or even write a log at all, while all the others run.

Shouldn’t there be a log?

We run everything as/on a single user ‘gisrep’.  This user has the highest permissions on all folders.

Did I read correctly that this user needs to have permission on the install folder D:\Program Files\FME?  The user should have this control.

Regarding the above we can only run Log In or Out.  We will try Running with highest privileges - turned off.

All our Reader and Writers come from GDB, SDE connection or Web Connection with user authorized on the gisrep login.

Why do some work and other not?  This is very random.

Thx 

 


dbklingdom
Contributor
Forum|alt.badge.img+7
  • Contributor
  • February 3, 2025

Hello,

We are using FME(R) 2024.2.1.0 (20241202 - Build 24801 - WIN64)

Now these WB stop running if we make changes to WB?

 

Txh


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings