troubleshooting Question

FM - Continued Problems with Scripting an Import

Avatar of rvfowler2
rvfowler2Flag for United States of America asked on
FileMaker Pro
14 Comments2 Solutions1752 ViewsLast Modified:
In FM, you can't seem to import using the normal file path.  FM helps says the following on scripting an import, however it does not seem to work.  I once got it to work, but now after repeated tries have to admit I forgot how I did it.  From the help below, I tried various iterations of the following directly below, but the import did not work from the script (though does work from my PC).  Any suggestions?

/Library/FileMaker Server/Data/Documents/unitaddy.txt
 When using the Import Records script step or Export Records script step in a FileMaker Server scheduled script, keep the following in mind:

  •  Any specified file must be in the FileMaker Server Documents folder, the temporary folder, or a child folder of either the FileMaker Server Documents folder or the temporary folder. For example, the following are all valid paths for file.csv:

<Temporary Path>/file.csv
<Temporary Path>/Folder1/Folder2/Folder3/Folder4/file.csv
  •  Any path specified that isn’t a complete path to the file (for example, anything other than
/Library/FileMaker Server/Data/Documents/<0 or more directories>/<filename> ) is evaluated as being relative to the temporary path.

  •  Any paths that include “..” are considered invalid.

  •  For FileMaker Pro, if an absolute path is not specified in a script that will be executed from FileMaker Pro, the path is assumed to be relative to the location of the database file from which the script was run. For example, if a script containing the Export Records script step is run with the pathname file:/, and the file running the script is /MyFiles/Library/Books.fp7, the exported file will be created as /MyFiles/Library/

Robert Jackson
FileMaker Database Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros