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.

Out of Memory Writing to MySQL table occurrence?

Featured Replies

  • Newbies

We want to dump some data from FMP into a MySQL table that is used for reporting by other applications.

To do this we:

1) Add an External Datasource that connects to the MySQL database.

2) Create a table occurrence that is bound to the MySQL table.

3) Write a script that loops through all the existing fmp records that we are interested in and does the following:

---- Create a new record in the MySQL table occurrence.

---- Set the fields.

---- Commit the record.

The table is relatively small, maybe 10 fields.

The error we are encountering is that when we attempt to run the script, FMP throws an error that it is out of memory, after getting through only 4000 records or so (of 25000).

This error only happens if we create the records in the MySQL database directly. If we write to a temporary fmp table, and then import from the temporary fmp table into the MySQL table via the import records script step, the script runs successfully. Unfortunately, we want to schedule this to be a nightly task on our fmp server, so import records is not a viable way to approach this. We need to be able to create the records directly in the MySQL table via the fmp table occurrence.

Anyone have an idea as to why this would be happening, and how we could resolve it? We're using the lastest MySQL odbc drivers. MySQL 5.0.44. Fully updated fmp.

  • Author
  • Newbies

Client that I was testing the script on was a Core 2 Duo 2.4, 2GB Ram, running XP pro.

Create an account or sign in to comment

Important Information

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

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.