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.

Import records problem....

Featured Replies

I guess I just can't see it.........but there's a oops somewhere in here.

I'm getting a "yes" in every record sometimes showing as updated=yes even though the import file was empty.

some lines are abbreviated......


Import Records [ Source: “file:update.txt”....Method: Update matching]

Set Field [ table::gErrorCode; Get (LastError) ]

If [ Get(FoundCount) = 0 ]

   Show Custom Dialog [ Title: .....]

   Set Field [ table::number of import errors; 1 + table::number of import errors ]

   Show All Records

   Go to Layout [ “whatever” (layout) ]

   Exit Script [ ]

Else If [ table::ErrorCode = 409 ]

   Show Custom Dialog [ Title: ......... ]

   Set Field [ table::.....]

   Show All Records

   Go to Layout [ “whatever” (layout) ]

   Exit Script [ ]

Else

   Replace Field Contents [ table::updated; Replace...tion: "Yes" ]

   Set Field [ table::records updated; Get(FoundCount) ]

End If

It would appear that the found count after import is not zero, and the last error was not 409, so it's proceeding to the Replace step. Do you have FM Advanced so you can step through with the script debugger?

  • Author

Yes and ran it.... no errors this time and not sure what caused it as there's more to the script and several fields are modified.

I have set it to 'pause on error' hoping to catch the problem..........

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.