• Introduction
      This import utility is unsupported. Please contact our sales department for a supported database import/conversion solution.

      The import utility provides a simple interface for migrating an existing database table of account information to Emerald. Filtering and testing functions automatically account for common differences between Emerald and other systems and warn about possible problems.

      To get started move any account information you want in Emerald into a single table. These records are required. While these are Optional. You don't have to use exact column names shown in the tables. In addition you can set static values for any required or optional 'Emerald Columns' without having to make them part of your table.

      Next you'll want to configure Regions, Account Types, Groups..etc via Emerald Administrator to match the ones you'll be using. Anything listed here where the 'Depends On' column is used MUST have been configured in Emerald Administrator before doing an import.

  • Connecting to the Databases (Import & Emerald)
      Create two odbc datasources. The first to refrence your import database, the other Emerald.

      Next run the import program. Select a source(import), destination(emerald) Datasource and enter the name of your import table.

  • Mapping Emerald & Import Columns (The Main Grid)
      Main Grid has 4 columns (Emerald Column, Import Column, Static Value and Scope).

      Emerald Column - Name of the Emerald field to map a 'Static Value' or 'Import Column' to.

      Import Column - Column from the Import Table relating to 'Emerald Column'.

      Static Value - Sets a static value for this 'Emerald Column'.

      Scope - Displays what this column is used by. Possible values are MBR(Master Billing Record), SA (Sub-Account) or Import(Used to direct the import process).

      Rows highlighted in yellow are required and must have either an 'Import Column' or 'Static Value' defined for them. All rows not highlighted don't require a set value.

  • Mapping Import Data to Emerald.
      After defining types of services, regions, pay periods, billing cycles...etc via Emerald Administrator associate this information with your import table by selecting the 'Map Import Column to Emerald' button at the bottom right corner of the main window. Where this button appears every unique value from this column of your import table must match a value from emerald. Not having a complete mapping will cause the 'RI' tests to fail.

  • Verify & Import
      'Verify' runs a series of tests on the import data to make sure it can be safely imported. 'Import' automatically calls verify if verify has not already run before moving on to the import process.

  • Grouping Master Accounts and Sub Accounts
      It's possible to put Multiple Sub Accounts into a single Master Account (MBR) by using the GroupingID and IsMBR 'Emerald Columns'. Each set of MBRs and related SubAccounts must be given a unique identifier (GroupingID) to identify that set. For the set exactly one Account must have IsMBR set to 1. This identifies an MBR for the set. The relationships amoung GroupingID, Accounts and IsMBR are examined during the 'Grouping' test. You must correct any errors produced from it.

  • Data Filtering
      Filters allow for common differences between other systems and Emerald conventions to be easily taken into concideration.

      Type Filters

      • Boolean will automatically convert any of the following values to 1 or 0. (1=yes,active,y,good,used,on -- 0=no,off,*active,n,bad,*expire*,*used)

      Grouping Filters (Used when Import Columns have the same value for the following emerald columns)
      • FirstName & LastName - Heres the algorithim used for splitting these out: Via the first space - FirstName gets the first word, LastName gets anything after that. Via the first comma. In this case it's reversed. The first part up to the comma becomes LastName, everything else becomes FirstName.

      • City,State,Zip - Parses strings similar to 'Spokane, WA 99205' into their parts. There are three seperate strategies used depending on which field is being converted. If the data is not formatted well enough for all or any of them that column is replaced with the contents of the entire string 'Spokane, WA 99205'

      Filters - Dashes, spaces..etc are stripped from Credit Card numbers. CC Expire Dates are converted to mmyy format. If FirstName,LastName,BankAccountNumber,BankAuthName,BankNumber,BankName are NULL they're converted into a blank space. StartDate is converted to the current date if it's NULL.

  • Trouble-Shooting

    • Handling failed tests during the verify process.
      TestFixed by
      CompletenessMake sure any rows in the 'Main Grid' highlighted in yellow are completely filled in. All corresponding columns of the import table should have no NULL values.
      Type VerificationMake sure dates from the import table are correctly formatted. Yes/No fields should contain 1(yes), 0(No) or any value from the Boolean Filter list. Number/Money fields should not contain letters or unrelated symbols.
      GroupingSee Grouping
      Referential Integrity Use the Map Column option or add missing values from the import table through Emerald administrator.
      Size Check Errors produced here can ususally be ignored. If for example SizeCheck complains about a very long First Name, not abbreviating name by changing it's value in the import table will cause any characters over the size limit to be truncated.

    • SQL Errors during import - The most common sql error is a deadlock ususally caused by someone using emerald while an import is in progress. In this case press 'Retry' to try again. If retrying the query continues to fail with a message sounding like a connection problem click 'abort', exit the program and try again. You'll be able to continue from the last successfully uploaded account.

    • I want * to ... the import wizard doesen't seem to allow it. - Much can be done by writing update queries to modify your import table before an import.

      There are practical design limitations where you may have to end up writing custom programs or queries to convert more complex data. Contact our sales department for more information on how we can help convert your existing database to Emerald.

  • Misc

    The file default.cfg stores 'Main Grid' defaults. 'check.pt' stores the last checkpoint database cursor position for recovering from network or computer problems.

    Special Case defaults GETDATE(), NULL, SUSER_NAME() (must be in caps) won't be quoted and therefore passed on to the SQL Server. This means GETDATE() returns the current server date, NULL sets that column to null and SUSER_NAME() returns the username of the person currently logged into the sql server.