I'd need to see the calculation that you are using before I can suggest why it might fail, but opening the files from a remote storage location is not generally a good idea.
Export Field Contents can open a copy of the file on the local machine. You can use Get ( TemporaryPath ) to specify a location for exporting/opening the file to a standardized location that will work on any computer and which is a location where the file copies will not be retained afterwards.
Also, you can use an interactive container field and open the file in a large format container field and not need to open the PDF in a separate window.
Thanks for the reply. I'm reasonably new to FM after a break since Ver 5 !! I am now very rusty with scripts and everything is taking ages.. perhaps it's the age :)
Anyways, it would be greatly appreciated if you could perhaps also include the correct script steps for each method of attaining the result. Thanks so much
The text returned from a container field varies with the insertion method used and the storage option specified for the field. Simply referring to the container field is not guaranteed to produce a file path and even if it does, it may not be producing a file path that is valid for the current user's machine as a location on a server would need to be mapped and at least "read" access permission granted to that user. One of the reasons to use remote storage is to avoid the need to share the directory in such fashion
Set Variable [$Path ; value: Get ( TemporaryPath ) & "FileName.PDF" ]
Export Field Contents [ Jobs::G_Schematic_1 ; “$Path” ; automatically Open ]
Is a method for opening your PDF on the local users machine while using the temporary folder as the location to which to export the copy such that you don't end up with a bunch of file copies cluttering up your local user's machine. In place of "filename.PDF", you can use a calculation that extracts the file name from the container field though you might have a text field that separately stores the file name and then you can use that or you can use just static quoted text like I have in this example.
For more on FilePaths, container fields and the script steps that use them see: Exploring the use of a $Path Variable in Scripts
There's a file that you can download from there that you can use to explore filepaths and it includes a calculation designed to extract file names from a container field no matter what storage option or insertion method.