The script steps in the log messages above are not supported on FileMaker Server, so that is why you are getting the errors in the log. In this case, it is nothing to be concerned about, but if you were looking at a real world solution you might adjust the script that runs OnFirstWindowOpen to skip steps that are not supported on FileMaker Server if the script is being run on the server.
if you want to test if the script is being run on the server instead of a client, then you can use an If statement. On startup scripts I often add an If statement that ends the script if on server like:
If ( PatternCount ( Get ( ApplicationVersion ) ; "Server" ) = 1 )
Exit Script [ "Script Aborted singing running on server" ]
That's the script You are running by schedule - not the 'on first win open'?
The shown script itself seem to be ok (I don't love characters like '-' in filenames, though). The 645 is informational
tcfitzgerald is right, check the first-window open script and disable some lines as Taylor mentioned
I loaded the script run on FirstWindowOpen and set Compatibility to Server: all te offending scrip steps are grayed out.
Funny because in the FTS material, they warn about scripts that are fired by triggers . So the thing is:
- for the import to run, the script needs to include Go to Layout
- FMS will open the database...
- ... triggering the script to run when the first Window opens
- and some script step are not compatible
To be full safe, I guess that the script that runs at the beginning should check if it's running on the server, as instructed by Taylor, and then skip over the non compatible steps like Allow Formating Bar [On], Adjust Window [Resize to Fit and so on.
Strangely, Show/Hide Toolbars is not not flagged as incompatible with Server in the Script Workspace (FMPA 14), the step itself is compatible with FileMaker Server scheduled script according to help, but it triggers an error in the log.
The Show/Hide Toolbars capability to be performed on server may (or may not) be related to the issue recently reported in the following threads. From what I can gather, the observations weren't entirely consistent or conclusive.
the explanation is quite interesting !