Hi Guys, Just a quick question for a beginner, I have created multiple export scripts, and notice that when I create a master script with the numerous subscripts being called, sometimes the output isnt correct, whereas when I run each script one by one (rather than lots of subscripts within a master script) the final result is fine. Could there be anything wrong with using subscripts for this?
Should I always have an Exit Script step at the end of each subscript? I hope that makes sense
By Agnes Riley
I have a script that sends notification emails. It stopped sending emails after the server HD was cloned by their IT department.
The script works as intended from FM, I receive the emails, client receives the emails.
When sending from server, the scrip completes with errors:
I really don't think the second error is relevant.
I checked and the file permissions are correct for FM server, the login account clearly works.
The system clock is fine on the server, getting time from Apple.
Any ideas anyone?
I've scheduled a server side script for the first time. The script is in our CRM database, and it essentially just "shows all" and then performs an export to a specific file path. I have set this to run every night at 8pm.
So far, I have not been able to get it to run successfully on schedule. When I run the script in the database itself, it exports the data successfully, but when the server runs the scheduled script, it gives scripting error (800), which is that it can't save the file in that location.
Am I doing something wrong? I even changed it so that the file exports to a location on the server itself, thinking maybe that was the problem. Still no luck.
I am running FMS 11 and FMP 11 on OSX 10.7.5
Thank you for your help!
I have noticed that Server Adv.12.03 not longer clears the temp cache once a server script is finished. Usually the cache should be deleted once the server script is done, shouldn't it.
It's happening on two Mac Servers 10.7.5 / 10.6.8
Has anyone else this problem? Is is a bug?
I love the temp cache. I use it a lot to get data from the internet into the database (Load, write to file in temp , import into database) using server scripts..
So if there a bug, I will run into trouble.. only a question of time and disc space..
I have been having a problem today trying to set up a script that runs on the server overnight which will gather currencies and security prices that need to be updated with the market closing values of the previous day. This script involved setting a filter field with the value Get ( currentdate ) - 1. The script runs with no errors but the filter field is not being set. It remains empty. When running this in a client, it works flawlessly.
I found an article today which discusses differences in scripts being run on the client vs. the host. The article was not very clear but it seemed to imply that many of the Get ( ) functions return an empty value when running on the server.
Can anybody verify if this is the case, and which functions will not work? The error logging for server side scripts is abysmal, and in this case, non-existent.
If in fact this is true, would anybody know a workaround for the Get ( currentdate) function that would work on a scheduled script? I was quite dismayed to read this about Get ( ) functions as this makes server scheduled scripts practically useless for my purposes. And I had such big plans!
Who Viewed the Topic