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.

Error running Script in FMS Scheduler

Featured Replies

Hi,

I am running a simple update script from the FMServer Scheduler.

It finds some records and tries to do a Replace.

Runs fine from FMPro.

Here is the error in the event.log:

scripting error (301) at "Invoices :) Update Quote Forecasts : Replace Field Contents".

2008-09-08 12:10:40.974 -0800

Is "Replace" not a valid command to be run from the server?

I can't find a document on running FM Scripts from Server.

Also, it is frustrating because I don't get an error email when there was an error running the script....

Any help is appreciated. I still have my robot machine running other scripts the old way so maybe will just move this one back. Has anyone heard anything on enhancements to SASE. It's a great concept but not quite ready for prime-time.

Thanks.

Replace Field Contents should be able to be used as a script step with FMS server side scripting. Error 301 means that a record was locked. Either another user is in the record or you are.

Make sure that you put in a commit [] after the replace field contents as well.

Does the Replace command need to be run on a layout with the field present?

Hi, Julie.

Check to be sure yu didn't leave the dialog to display on this step. That will invalidate the server side script.

Steven

Does the Replace command need to be run on a layout with the field present?

Hi Vaughan,

If running Replace Field Contents manually then we need to be able to put our cursor in a field but not when scripted. I believe the behavior changed with vs. 7. Scripted RFCs can specify both the field to copy from and the field to replace. If it is used to set a related field, it will use the current parent found set and replace all the children with the related values.

If there is more than one parent value then it will set all related records with the last 'related' parent's value. If you run RFC through the child table, it will set all the related child records with the first parent value (because that's all it sees). It's pretty cool but it can also bite if one isn't clear on what it is setting behind the scenes. :wink2:

LaRetta

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.