Jump to content

Insert File won’t work on Server — why?

This topic is 974 days old. Please don't post here. Open a new topic instead.

Recommended Posts


I have the following script step that works just fine, locally:

Insert File [ Target: g::tmpc ; "$URL" ]

g::tmpc is a global container field (that is deleted after the file (a pdf) is inserted.

$URL contains something like "file://Macintosh HD/var/folders/m4/91h3r7mn2h71j7vmyzv4z7nm0000gp/T/S6847/File.pdf" (using the tempFolder functionality).

When this is running on my FM Server 17 (script is called with PSoS) it just doesn’t fill the container field! It is very tedious to debug script steps on the server, but anyway I manage to check the Length ( g::tmpc ) after the insert and it is always 0. I also check the $URL and the existence of the file in the temp folder location and that is fine as well.

BTW, I have also tried Insert PDF [...], same results.

This is quite puzzling. Any suggestions?

Thanks a lot,



Link to comment
Share on other sites

When you are writing a script that is intended to be performed on server, you might want to turn on the View > Compatibility > Server option.

In addition, the help file has a compatibility chart for every script step, where you can check which products can execute the step, with what limitations. Neither Insert File nor Insert PDF are supported with FileMaker Server.

As a workaround, you can use the Insert From URL step - see:


Edited by comment
  • Thanks 1
Link to comment
Share on other sites

OMG, I never thought that these were not server compatible! But I will heed your advice turning the compatibility option on.

Thanks a lot!!


Link to comment
Share on other sites

This topic is 974 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

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