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.

FM crashing during looping script

Featured Replies

Hi all,

I have a looping script that inserts files (physical files, not refs) into a container. Before the script finishes the insertion of its 3990 files it crashes.

I'm thinking that this must have something to do with the File Cache size and/or Saving Cache Contents, which can be specified in Preferences. Can anyone offer some insight as to how I can remedy this?

FYI Script exits loop properly, so I know that isn't the problem. Also, toward the end of each loop is a "Commit Record" step. I thought that step would remedy it, but it didn't.

Thanks in advance for any help offered!

Try putting a "flush cache to disk" step in there somewhere.

  • Author

Hi Vaughan,

Thanks for the suggestion!

Would you suggest I do that after every X number of records? I don't want to do this for every record, do I?

Flush Cache will probably be a significant performance hit: I'd expect it to take a couple of seconds to perform. So run it every 1,000 records or so.

Heck, you could try getting it to flush just at record 3989 and see if it makes a difference. :

  • Author

Thanks, Vaughan!

I'd already set it to flush cache every 300 records and that got me through the script just fine. This is a one-time script that will never run again, so performance wasn't a big concern.

Thanks again, you were a big help!

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.