Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5352 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I set up a Windows batch file that simply opens a non-hosted FileMaker file. When the FM file is run, it performs some tasks, then exits.

When I run the batch file as is, it works just fine.

I setup a FMS schedule to run said batch file. I set it up to run under a Windows Admin account that I know is good (I manually ran the file using the same account). Each time the schedule fires, it aborts with a status of 'System script error'. Looking in the log viewer, I see an error of 692 - 'returned non-zero status -1"

Now I can understand this being a problem if the schedule was run under the Local System user or other non-priv user. But this is set up as a user with Admin level privileges to this machine.

Did I miss something? :

Posted

What's this non-hosted file supposed to be doing? Why would you schedule it with the FMS scheduler?

The obvious difference would be that you're trying to run a UI operation with nobody logged in. If you ran it manually it would work just fine because it would be possible to draw an UI in your user space.

Posted

It's running a time-range report, creating a PDF, and then emailing it to specific people.

The PDF creation part of this is the reason why I'm not using FMS script schedules.

Posted

What error (if any) do you get when you schedule the same batch file but with the Windows Task Scheduler?

Also are you trying to run this with nobody logged on (in the OS)?

  • 2 weeks later...
Posted

I figured out what was going on. I'm able to run the same process successfully using the Windows Task Scheduler. BUT I had to run it under Server 2003 mode, so it'll use session zero.

This topic is 5352 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.