AnsweredAssumed Answered

InsertFromURL isn't clearing error codes in the debugger.

Question asked by nickorr on Feb 5, 2014
Latest reply on Feb 6, 2014 by philmodjunk


InsertFromURL isn't clearing error codes in the debugger.


FileMaker Pro



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 "".

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


Configuration information

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


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