For PSOS, you start at opening file, so "Go to Layout" would be first step if the called script don't use starting layout.
PSOS runs on another session, so no variable is shared with caller. $$TemporaryPathSpreadsheet seems not defined.
Thanks for the feedback
$$TemporaryPathSpreadsheet set in line 28 of Script “Export to Spreadsheet NoOpen” which is called in line 4 of Script “email Receipt” and the opening layout is the correct layout.
I disabled much of the PSOS script as shown below and the error remains.
will disable more of it shortly.
Have you checked your server ?
- is it allowing PSOS ?
- is the FMSE engine running ?
Check the log of your server to see if that reveals more info.
Typically you can see the script step, that fails to execute.
Thank you for all the suggestions… I feel like an idiot as usual.
The error is coming from the client. I did not specify that from file: "Hosted_Database" and so was
trying to Perform Script on Server on a client file where the error description makes perfect sense.
Hosted database is selected in the top pull down menu of the Perform Script on Server dialog.
error  Command is unavailable (for example, wrong operating system or mode)
The give away here is of course no errors in the Server log, and when I disable all statements in the performing script the error remains. Relative to the previous suggestions PSOS is enabled as I am using it in other scripts.
Script works fine now. Odd how the simplest things are the easiest to miss.
Now on to the next obvious but impossible to see error.