Claus Lavendt Posted April 5, 2014 Posted April 5, 2014 Hi I have a problem, saving some text from a text field into a file on a FMS13 server, using a generated plugin from ScriptMaster Pro. So the function I am using is the included in ScriptMaster sample file, except that I have added a parameter for setting desired encoding. It works perfectly on desktop, but fails when running as a server side script. The error returned on the server (SM error) is: failedjava.io.FileNotFoundException: Library/FileMaker Server/Data/Documents/TicketMasterTrans_05042014230946.csv (No such file or directory) I have also tried with using Temporary path, since that is actually more desired, but i am not sure, that it is availble on server, som documents path is fine. I did strip out the path, so it is converted to an OS path, and it is working on desktop. I have checked that the permissions on the document folder on the server is set as normal. Even tried to set write permission to everyone as well. I did look at this forum and also at the thread about exporting a container field, but could not find any clues there. I have a feeling that I am missing something obvious here... Does anyone have an idea of what is going wrong ?
David Wikström Posted April 6, 2014 Posted April 6, 2014 From the error message it looks like you may be missing the leading slash in the path. It should be "/Library/FileMaker Server/...", not "Library/FileMaker Server/..."
Claus Lavendt Posted April 6, 2014 Author Posted April 6, 2014 Hi David Thanks, that's what I thought too, but I have tried to add a leading slash, which did not make any difference…. Any ideas are welcome….
Claus Lavendt Posted April 6, 2014 Author Posted April 6, 2014 Sorry…. it seems that I actually did something wrong and missed the leading / Though, it is funny, that this error only occur on server side scripts. Anyway, it works now. Thanks for making me take a look again..
Recommended Posts
This topic is 4226 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 accountSign in
Already have an account? Sign in here.
Sign In Now