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?
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:
• 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:/export.tab, and the file running the script is /MyFiles/Library/Books.fp7, the exported file will be created as /MyFiles/Library/export.tab.