Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

script error after updating solution

Featured Replies

After updating my solution, I get a "cannot find script or script has been deleted" error, but still carries out script. I reformatted the button to play script, redid the script with same error. Only set error capture on elliminated the message.

Any ideas as to why I was getting the error?

script read:

Copy(Select, Record#)

Perform Script(subscripts, Add Payment)

Hey kens.

Check your Add Payment script to see if any of the Perform Script steps don't specify a script. Then, check those scripts for the same thing.

Paul

If you set error capture ON, be sure to capture the error and handle it. Otherwise items can fail with no warning.

HTH

Old Advance Man

  • Author

I cannot seem to find any script error... I even tried re-doing all the scripts and external scripts and still same error. With set error capture on, all runs ok...how do I capture the error if there is one?

quote:

Originally posted by kens:

I cannot seem to find any script error... I even tried re-doing all the scripts and external scripts and still same error. With set error capture on, all runs ok...how do I capture the error if there is one?

In a situation like this, I liberally sprinkle Show Message steps in my script with a brief description of what I expect the script to do next. It may help you pinpoint where your script is breaking.

As for error capturing, the Status(CurrentError) function returns the error code for the most recent script step only. I tend to enclose Script Steps most likely to cause errors (e.g. Find, Print, etc.) with Set ErrorCapture, and within that I have a conditional statement (e.g. If Status(CurrentError)<>0) to handle any errors.

quote:

Originally posted by The Bridge:

In a situation like this, I liberally sprinkle Show Message steps in my script with a brief description of what I expect the script to do next. It may help you pinpoint where your script is breaking.

As for error capturing, the Status(CurrentError) function returns the error code for the most recent script step only. I tend to enclose Script Steps most likely to cause errors (e.g. Find, Print, etc.) with Set ErrorCapture, and within that I have a conditional statement (e.g. If Status(CurrentError)<>0) to handle any errors.

There are specific errors, and there is a list of soem of them in the on-line Help.

To capture the exact error, create a global field of the type number. Immediately after the event that might cause the error, Use a Set Field into that global with Status(CurrentError). This does not apply to ODBC. ODBC has its own error step.

HTH

Old Advance Man

  • Author

Thanks for your help....I found the error in a subscript.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.