Filemaker PSOS Export









up vote
0
down vote

favorite












I have a simple script that goes to a table, performs a find & exports a small set of records. It's an extremely simple script, but I am having a nightmare getting the export to my Server docs folder when running this script on my local machine via the PSOS script step.



I get no error messsage when I run the script but the file just doesnt export to my server docs and its driving me crazy as it should be so simple, I'm beginning to think this is a permissions issue.



I have tried a million different file paths such as



"filewin:" & Get(DocumentsPath) & "test.csv"
"filewin:/" & Get(DocumentsPath) & "test.csv"
"filewin://" & Get(DocumentsPath) & "test.csv"
"file:" & Get(DocumentsPath) & "test.csv"


So on and so forth, most return no error, yet the file is no where to be found?
I'm 99% sure its nothing to do with the filepaths as I've never had this problem before.










share|improve this question





















  • First of all, try Get(DocumentsPath) & "test.csv" on their own. Secondly, make sure you are checking the correct Documents folder. FileMaker Server documents folder is /C:/Program Files/FileMaker/FileMaker Server/Data/Documents and not user Documents folder. Finally, check if the account you use for PSOS has the export privileges
    – Nicolai Kant
    2 days ago














up vote
0
down vote

favorite












I have a simple script that goes to a table, performs a find & exports a small set of records. It's an extremely simple script, but I am having a nightmare getting the export to my Server docs folder when running this script on my local machine via the PSOS script step.



I get no error messsage when I run the script but the file just doesnt export to my server docs and its driving me crazy as it should be so simple, I'm beginning to think this is a permissions issue.



I have tried a million different file paths such as



"filewin:" & Get(DocumentsPath) & "test.csv"
"filewin:/" & Get(DocumentsPath) & "test.csv"
"filewin://" & Get(DocumentsPath) & "test.csv"
"file:" & Get(DocumentsPath) & "test.csv"


So on and so forth, most return no error, yet the file is no where to be found?
I'm 99% sure its nothing to do with the filepaths as I've never had this problem before.










share|improve this question





















  • First of all, try Get(DocumentsPath) & "test.csv" on their own. Secondly, make sure you are checking the correct Documents folder. FileMaker Server documents folder is /C:/Program Files/FileMaker/FileMaker Server/Data/Documents and not user Documents folder. Finally, check if the account you use for PSOS has the export privileges
    – Nicolai Kant
    2 days ago












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a simple script that goes to a table, performs a find & exports a small set of records. It's an extremely simple script, but I am having a nightmare getting the export to my Server docs folder when running this script on my local machine via the PSOS script step.



I get no error messsage when I run the script but the file just doesnt export to my server docs and its driving me crazy as it should be so simple, I'm beginning to think this is a permissions issue.



I have tried a million different file paths such as



"filewin:" & Get(DocumentsPath) & "test.csv"
"filewin:/" & Get(DocumentsPath) & "test.csv"
"filewin://" & Get(DocumentsPath) & "test.csv"
"file:" & Get(DocumentsPath) & "test.csv"


So on and so forth, most return no error, yet the file is no where to be found?
I'm 99% sure its nothing to do with the filepaths as I've never had this problem before.










share|improve this question













I have a simple script that goes to a table, performs a find & exports a small set of records. It's an extremely simple script, but I am having a nightmare getting the export to my Server docs folder when running this script on my local machine via the PSOS script step.



I get no error messsage when I run the script but the file just doesnt export to my server docs and its driving me crazy as it should be so simple, I'm beginning to think this is a permissions issue.



I have tried a million different file paths such as



"filewin:" & Get(DocumentsPath) & "test.csv"
"filewin:/" & Get(DocumentsPath) & "test.csv"
"filewin://" & Get(DocumentsPath) & "test.csv"
"file:" & Get(DocumentsPath) & "test.csv"


So on and so forth, most return no error, yet the file is no where to be found?
I'm 99% sure its nothing to do with the filepaths as I've never had this problem before.







export filemaker






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









Sean

286




286











  • First of all, try Get(DocumentsPath) & "test.csv" on their own. Secondly, make sure you are checking the correct Documents folder. FileMaker Server documents folder is /C:/Program Files/FileMaker/FileMaker Server/Data/Documents and not user Documents folder. Finally, check if the account you use for PSOS has the export privileges
    – Nicolai Kant
    2 days ago
















  • First of all, try Get(DocumentsPath) & "test.csv" on their own. Secondly, make sure you are checking the correct Documents folder. FileMaker Server documents folder is /C:/Program Files/FileMaker/FileMaker Server/Data/Documents and not user Documents folder. Finally, check if the account you use for PSOS has the export privileges
    – Nicolai Kant
    2 days ago















First of all, try Get(DocumentsPath) & "test.csv" on their own. Secondly, make sure you are checking the correct Documents folder. FileMaker Server documents folder is /C:/Program Files/FileMaker/FileMaker Server/Data/Documents and not user Documents folder. Finally, check if the account you use for PSOS has the export privileges
– Nicolai Kant
2 days ago




First of all, try Get(DocumentsPath) & "test.csv" on their own. Secondly, make sure you are checking the correct Documents folder. FileMaker Server documents folder is /C:/Program Files/FileMaker/FileMaker Server/Data/Documents and not user Documents folder. Finally, check if the account you use for PSOS has the export privileges
– Nicolai Kant
2 days ago












1 Answer
1






active

oldest

votes

















up vote
1
down vote













You don't need "filewin" at the beginning. If you are using the built in Filemaker functions first set a variable $file_path = Get ( DocumentsPath ) & "you_file_name.csv". Then the "Export Records" script step with the following options:



Specify Output File -



Output file path list = $file_path



File type = CSV



This will export a csv of your records to the documents folder, unless, the user account FileMaker Server is using does not have file permissions. When you set up the server, if you changed the default account that FileMaker Server uses - you'll need to add permissions to your folder and parent folders.



You can check for errors by using the "Exit Script" script step. Set the text result to = Get ( LastError ). Then use "Set Variable" = Get ( ScriptResult ) to pass this error into the script that called the PSOS script. Place the "Exit Script" script step just after the export records script step to find out why it's not creating the file.



If you are using plugins to export the records like BaseElements you'll need to convert the file path that FileMaker gives you to one that BE can use. Essentially Substitute ( $file_path ; "/C:" ; "" )



Hope this helps.






share|improve this answer




















  • Good thorough answer.
    – AndreasT
    2 days ago










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53224987%2ffilemaker-psos-export%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













You don't need "filewin" at the beginning. If you are using the built in Filemaker functions first set a variable $file_path = Get ( DocumentsPath ) & "you_file_name.csv". Then the "Export Records" script step with the following options:



Specify Output File -



Output file path list = $file_path



File type = CSV



This will export a csv of your records to the documents folder, unless, the user account FileMaker Server is using does not have file permissions. When you set up the server, if you changed the default account that FileMaker Server uses - you'll need to add permissions to your folder and parent folders.



You can check for errors by using the "Exit Script" script step. Set the text result to = Get ( LastError ). Then use "Set Variable" = Get ( ScriptResult ) to pass this error into the script that called the PSOS script. Place the "Exit Script" script step just after the export records script step to find out why it's not creating the file.



If you are using plugins to export the records like BaseElements you'll need to convert the file path that FileMaker gives you to one that BE can use. Essentially Substitute ( $file_path ; "/C:" ; "" )



Hope this helps.






share|improve this answer




















  • Good thorough answer.
    – AndreasT
    2 days ago














up vote
1
down vote













You don't need "filewin" at the beginning. If you are using the built in Filemaker functions first set a variable $file_path = Get ( DocumentsPath ) & "you_file_name.csv". Then the "Export Records" script step with the following options:



Specify Output File -



Output file path list = $file_path



File type = CSV



This will export a csv of your records to the documents folder, unless, the user account FileMaker Server is using does not have file permissions. When you set up the server, if you changed the default account that FileMaker Server uses - you'll need to add permissions to your folder and parent folders.



You can check for errors by using the "Exit Script" script step. Set the text result to = Get ( LastError ). Then use "Set Variable" = Get ( ScriptResult ) to pass this error into the script that called the PSOS script. Place the "Exit Script" script step just after the export records script step to find out why it's not creating the file.



If you are using plugins to export the records like BaseElements you'll need to convert the file path that FileMaker gives you to one that BE can use. Essentially Substitute ( $file_path ; "/C:" ; "" )



Hope this helps.






share|improve this answer




















  • Good thorough answer.
    – AndreasT
    2 days ago












up vote
1
down vote










up vote
1
down vote









You don't need "filewin" at the beginning. If you are using the built in Filemaker functions first set a variable $file_path = Get ( DocumentsPath ) & "you_file_name.csv". Then the "Export Records" script step with the following options:



Specify Output File -



Output file path list = $file_path



File type = CSV



This will export a csv of your records to the documents folder, unless, the user account FileMaker Server is using does not have file permissions. When you set up the server, if you changed the default account that FileMaker Server uses - you'll need to add permissions to your folder and parent folders.



You can check for errors by using the "Exit Script" script step. Set the text result to = Get ( LastError ). Then use "Set Variable" = Get ( ScriptResult ) to pass this error into the script that called the PSOS script. Place the "Exit Script" script step just after the export records script step to find out why it's not creating the file.



If you are using plugins to export the records like BaseElements you'll need to convert the file path that FileMaker gives you to one that BE can use. Essentially Substitute ( $file_path ; "/C:" ; "" )



Hope this helps.






share|improve this answer












You don't need "filewin" at the beginning. If you are using the built in Filemaker functions first set a variable $file_path = Get ( DocumentsPath ) & "you_file_name.csv". Then the "Export Records" script step with the following options:



Specify Output File -



Output file path list = $file_path



File type = CSV



This will export a csv of your records to the documents folder, unless, the user account FileMaker Server is using does not have file permissions. When you set up the server, if you changed the default account that FileMaker Server uses - you'll need to add permissions to your folder and parent folders.



You can check for errors by using the "Exit Script" script step. Set the text result to = Get ( LastError ). Then use "Set Variable" = Get ( ScriptResult ) to pass this error into the script that called the PSOS script. Place the "Exit Script" script step just after the export records script step to find out why it's not creating the file.



If you are using plugins to export the records like BaseElements you'll need to convert the file path that FileMaker gives you to one that BE can use. Essentially Substitute ( $file_path ; "/C:" ; "" )



Hope this helps.







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









Neil Simpson

318




318











  • Good thorough answer.
    – AndreasT
    2 days ago
















  • Good thorough answer.
    – AndreasT
    2 days ago















Good thorough answer.
– AndreasT
2 days ago




Good thorough answer.
– AndreasT
2 days ago

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53224987%2ffilemaker-psos-export%23new-answer', 'question_page');

);

Post as a guest














































































Popular posts from this blog

How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

Syphilis

Darth Vader #20