Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Save to file function on server fails...

Featured Replies

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 ?

 

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/..."

  • Author

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….

  • Author

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..

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.