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 using the Replace command

Featured Replies

  • Newbies

I have a new database that I'm trying to replace data in a field from within a script. It is a very simple replace-all function, or so I thought. The message is "The previous script step, "Replace", could not be completed because it restores an invalid request. Do you wish to continue?"

The command completes normally if I use the manual method or the script method with dialog. It will generate the message if I try to automate the task with no dialog.

Please help . . . Chris

Make sure your specification for replace is correct and that the field you are replacing is on the current layout when the script is run. This is required.

-bd

quote:

Originally posted by Detroit Chassis:

I have a new database that I'm trying to replace data in a field from within a script. It is a very simple replace-all function, or so I thought. The message is "The previous script step, "Replace", could not be completed because it restores an invalid request. Do you wish to continue?"

The command completes normally if I use the manual method or the script method with dialog. It will generate the message if I try to automate the task with no dialog.

Please help . . . Chris

I want to enter a word of caution about the use of the Replace command. Be especially careful what you're doing. You can toast an entire set of data in a file if you don't.

Also, in a multiuser situation, you must trap for a particular record's being locked during this process. The replace will fail on that record if it is locked.

HTH

Old Advance Man

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.