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.

Importing: Sane alternatives to "Last Order"?

Featured Replies

So, I'm working with importing a csv dump from a main frame. Ugly field names.

I want to import them. I can set a custom order, and then pick "last order" next time I import.

But this is a group database, and I've seen the "last order" get screwed up or lost before. I have no idea if it's stored on a per-database or per-user level. And, I can't export a matched list easily for documentation of what goes to what.

I don't trust what I can't verify, and I'd prefer not do adopt the names from the mainframe.

Is there a better option?

Thanks!

-Jeff

  • Author

I'd still love an answer to this, but for the mean time, I wrote a python script to change the headers before importing.

It allows me to have a reference csv file that shows the matching field names.

-Jeff

Have you tried crating a script for this import.

Lee

  • Author

Yes, but it doesn't seem to keep the custom field matching reliably, and if something goes wrong it's hard to track it down with 256+ fields.

It doesn't keep the matching in the script text itself.

Maybe my problem is that I need to turn off access to editing the scripts to anyone by myself.

-Jeff

You do not mention how often this import needs to happen. If often, a script, as Lee mentioned, would help speed up the process.

Some trivia on importing that I've picked up from forums. Perhaps someone can chime in to verify:

1. Setting the import file name using a variable changes any matching names setting to last order.

2. Last order can result in mismatched mapping if you've added fields to your tables since you've defined the import mapping.

If there have been changes, I'd import with show dialog setting. Remember to set your next serial numbers.

Do you have different Access, and Privileges set up for these files?

  • Author

>>>You do not mention how often this import needs to happen.

Daily.

>>>1. Setting the import file name using a variable changes any matching names setting to last order.

I will keep that in mind.

>>>2. Last order can result in mismatched mapping if you've added fields to your tables since you've defined the import mapping.

That explains ALOT.

I think I will stick with my header renaming script. I know if I "match names" new fields won't matter.

Thanks!

-Jeff

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.