Server Side Export cannot write file
I have a problem with the export on the FM Server. On the client the script work's fine, but on the server, the file cannot be written. And I have no idea why.
Set Variable [$DocPath; Value:"filewin:" & Get(DocumentsPath) & "/test.csv"]
Export Records [No dialog; "$DocPath"; Windows (ANSI)]
Get(DocumentsPath) returns /C:/Program Files (x86)/FileMaker/FileMaker Server/Data/Documents/ and no error arises, errorcode is 0! The log file shows also no error!