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.

Table seems locked while managing fields

Featured Replies

I'm not sure if this is the right place to post this, but if I knew the answer, I would probably know where to post :crazy2:

I have a script that has about 150 steps that ultimately posts a work order and creates a related invoice. There are many scripts that create invoices, all with Show All Records/Show Omitted Only/New Record-Request then goes on to add the new InvoiceID to a variable then creates the related line items.

All the scripts work fine except for one. Anytime I'm managing fields in the Invoice table (I don't know if I may be editing a field or even possible working in the ERD) the New Record/Request step gets skipped and the script goes on to create the line items. The serial number of the key field doesn't increment.

There are about 50+ scripts that add records to various key tables in the same way and again, multiple scripts that add records to this table, but the problem only seems to occur with this one script and the one table. I have a developer layout for the table so I may also always have been on the same layout, but I don't know for sure.

I don't remember FM locking a table while working on it. I'm going to trap for an error message now but I'm not sure that will really answer my question.

Is anyone aware of this type of action and how to work around it (other than not working on the database while live - that's unavoidable)?

Thanks!

Oh, yes, you lock a table when you are working on it Manage Database (esp if it has an auto entered serial field) ! I ran into this big time (which is why you shouldn't develop on a live system).

So, New Record will fail. You could loop around New Record step...

Edited by Guest

Sometimes it is unavoidable to develop live - I have to, but thanks for pointing out what happens when you do, and it seems quite sensible too. I suppose some scripted steps should always be error trapped, particularly New and Duplicate.

  • Author

Thanks for the scoop. I seem to remember discussions about table locking years ago but don't remember any other details about it. I've always worked on the premise that adding records was benign unless there was corruption in the serial number Key Field.

Edited by Guest

Geoff Coffey enlightened me on this in a TechNet post. Basically, FM locks the table if you are modifying a table w/ an autoenter, bcs it "holds" the next serialID.

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.