2 Replies Latest reply on Feb 6, 2014 10:09 AM by philmodjunk

    InsertFromURL isn't clearing error codes in the debugger.

    nickorr

      Summary

      InsertFromURL isn't clearing error codes in the debugger.

      Product

      FileMaker Pro

      Version

      13v1

      Operating system version

      Mac OS X 10.9.1

      Description of the issue

      When you're debugging a script that is doing InsertFromURL and you modify the variable that is the url, if you get an error on the InsertFromURL step, but then modify the variable and then repeat the step and it works, the error remains.

      Steps to reproduce the problem

      Create a new file with one field and a script that does :

      Set Error Capture [ On ]
      Set Variable [ $url; Value:"blah" ]
      Set Field [ ErrorTest::Working; "" ]
      Insert from URL [ ErrorTest::Working; $url ] [ Select; No dialog ]
      Exit Script [ ]

      Run this in FMPA with the debugger open.  The script when you get to step 4 will correctly throw a 1631 error ( perhaps it should be 1630 though).

      In the data viewer, modify the $url variable to something valid, such as "http://www.filemaker.com/".

      Then select step 4 again in the debugger and use the "Set Next Step" button.

      When you step through it again, it then works fine ( you get the correct result in the field ), but the error codes doesn't change to 0 and remains in the display in the debugger.

      You can test it's a false error by using the Set Next Step button again to run the Set Field step, and note that it clears the error.  Then do the InsertFromURL again and it works and no error is shown.

      Expected result

      The error display in the debugger should reflect the actual error ( 0 ) and not the last run error.

      Actual result

      The error value isn't being cleared out on subsequent runs of the same step after altering the variable.

      Exact text of any error message(s) that appear

      NA

      Configuration information

      I've got a sample file I can show you if you want.

      Workaround

      Run two different steps ( Set Field and InsertFromURL ) together to clear it the first time.