AnsweredAssumed Answered

FMS 17 FMSE scripting error 1631 Insert from URL with file://

Question asked by cbissaillon on Nov 16, 2018
Latest reply on Mar 7, 2019 by cbissaillon

FileMaker Server 17

MacOS Mojave 10.14.1

Hardware: Mac mini,  Intel Core i7 3.2GHz 6-core, 32GB RAM

 

 

 

This script step fails with scripting error (1631):

 

     Insert from URL [ Select ; With dialog: Off ; Notifications by UID::Text ; "file:///Library/FileMaker%20Server/Data/Documents/notifications/" & $uid & ".txt" ]

 

 

I have tried using Get(DocumentsPath):

 

     Insert from URL [ Select ; With dialog: Off ; Notifications by UID::Text ; "file://" & Get(DocumentsPath) & "notifications/" & $uid & ".txt" ; Do not automatically encode URL ]

 

 

 

Other things I've tried:

  • I have tried both of these script steps with "Automatically encode URL" both off and on.
  • I have tried escaping the space in the path with a backslash rather than "%20".
  • The directory "/Library/FileMaker Server/Data/Documents/notifications/"  and all its contents are owned by user 'fmserver', which is the user fmserverd and fmsased are running as.
  • I have watched the Console log on the server while running the script schedule, but nothing was logged.

Outcomes