5 Replies Latest reply on Sep 3, 2016 7:33 AM by FileKraft

    Perform Script On Server does not create error on lost connection

    FileKraft

      Summary

      Perform Script On Server does not create error on lost connection

      Product

      FileMaker Server

      Version

      13v4

      Operating system version

      OS-X 10.8.5 Mountain-Lion

      Description of the issue

      client file running FMP 13v3 which is a local copy and not served calls a script to be performed on server just passing parameters and waiting for script result.

      If the client gets disconnected from the server capturing for last error after the script step perform script on server doesn't return an error if the connection was interrupted/disconnected.

      the get ( scriptResult ) returns still the last script result of a previous script before the interrupted script was run.

      Steps to reproduce the problem

      1. create a script on a local file calling a script to be performed on server on a hosted file
      1.1 trap for error after the perform script on server call with get ( LastError )
      1.2. add get ( ScriptResult ) and assign to variable $ScriptResult

      2. run the script with the debugger and use the admin console to disconnect the waiting client for server side executed script or unplug the local client from the network to disconnect while calling the server to perform script on server
      3. no error is logged - script continues with script result of any previous returned result

      Expected result

      lastError captures disconnection or any error not equal 0 indicating connection or execution failure

      Actual result

      no errror - and scriptResult shows previous scriptresult

      Exact text of any error message(s) that appear

      -

      Workaround

      returning explicit script result to indicate script ID etc ..
      calling a placebo empty script before the server sided script to clear script-result ..