AnsweredAssumed Answered

Command is unavailable error from php

Question asked by wiersemapi on Feb 18, 2019
Latest reply on Feb 19, 2019 by wiersemapi

Hello everybody,

i am accessing a filemaker database from php, insert a new record to a specific layout and run a script afterwards.

Inserting the record works fine. When I try to run the script i recieve the following error:

 

Error 3: Command is unavailable (for example, wrong operating system, wrong mode, etc.).

 

The script i want to execute calls a batch script. By executing it manually everything works fine. The php code that calls for the filemaker script looks like the follows:

 

     $newPerformScript = $fm->newPerformScriptCommand('Overview', 'pullFilesForNewRecord');   

     $result = $newPerformScript->execute();

     echo $result->getMessage();

 

The script step used to call the batch is Send Event.

 

Already checked the layout name und script name. Script steps are also fine i think, otherwise it wouldn´t run when i execute it manually.

 

Thanks !

Outcomes