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

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

Recommended Posts

Posted

[7:27:56 PM] Robert Schaub says: Today I discovered and reported to FileMaker as a bug

In FileMake 9 Server , you can now shedule the server to run a script inside any file.

Good So far..

Here's the bug

Loop

Perform Script [Your Script Name]

Go To Record [Next] [Exit After Last]

End Loop

The result ends in an error when it reaches the End Loop

The error is 101 Missing Record.

This causes the server side script to crash and any others after it will not be run.

The Work Around after hours of experimenting

Loop

Perform Script [Your Script Name]

Go To Record [Next] [Exit After Last]

Exit Loop If [Get(RecordNumber) = Get(FoundCount)

End Loop

After the last record it exits loop and the end loop is never executed, therefore the

101 error message is never reported and live goes on.

Those of you with a script debugger try it and click on the option pause at error.

Posted

Hi Steven,

The servers 9.v3 are on Macs 10.4.x i believe

Clients use XP with either Advanced or Pro

Try creating the script I posted above and Use the Debugger with pause at error option on.

After exiting from last record and hitting the end loop statement it returns the 101 Missing Record error.

When you run this as a scheduled script on a server the script stops and you get an email message that it failed. I now think this also causes the server to max out on memory and the server must be restarted.

  • 1 year later...
  • 2 years later...
  • Newbies
Posted

I can confirm the behavior is still present in FMSA 11 as well. Also chopper's workaround is slightly flawed. As written it will never perform the desired script steps on the last record. The order should be instead:

Loop

Perform Script [Your Script Name]

Exit Loop If [Get(RecordNumber) = Get(FoundCount)

Go To Record [Next] [Exit After Last]

End Loop

Posted

Have you tried this with Allow User Abort [ Off ] and/or Set Error Capture [ On ] ?

This topic is 4790 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.