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

401 error missing when should appear

Featured Replies

I have encountered a new problem which I have never seen before. A script is performing a find with Set Error Capture [On]. I have the script performing a find and immediately following the find, Set Variable[$lastError = Get (LastError)]. However, after the find fails to find any records, it is still reporting the last error as "0". I have verified this by running it in Script Debugger and it fails to produce the 401 error after not finding any records. Have any of you encountered this issue?

Have any of you encountered this issue?

Yes.

In my instance I had a script trigger on the layout which kicked in when returning to browse mode (immediately after the find request). The triggered script then ran and "swallowed" up the error, leaving no error in the original script.

Seemingly script triggers execute before the next step in the current script.

Incidentally, disable the Set Error Capture [On] and see if you get the FM dialog that the find request has failed.

  • Author

Yes.

In my instance I had a script trigger on the layout which kicked in when returning to browse mode (immediately after the find request). The triggered script then ran and "swallowed" up the error, leaving no error in the original script.

Seemingly script triggers execute before the next step in the current script.

Incidentally, disable the Set Error Capture [On] and see if you get the FM dialog that the find request has failed.

IdealData, you rock! That was precisely it! I did not realize that when you are running Script Debugger, that scripts called by triggers don't show up. Immediately after performing the find, an "on record load" script was running, and since it did not show up in debugger, I didn't realize the interference. I have now made another layout on which to perform the find, which allows the error to be captured. And BTW, I had already tried disabling the Set Error Capture [On] and it does catch the error there. That is why this was so baffling.

I owe you a beer.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.