SME Import Export Process

From High5Wiki
Revision as of 21:17, 9 February 2015 by Marks (talk | contribs)
Jump to navigation Jump to search

SME and SMP5 Import and Export Process
Importing into SME


SME and SMP5 provides a very open architecture for importing and exporting any data from the database tables using comma separated value files which are easily read and written using Excel. This guide provides some general guidelines on the import and export process. Please note that there are many tables and fields in SMP and many different purposes for importing and exporting information, so this is only a guide to adapt to your specific situation.

Exporting data: Utilities>Utilities>Export Data, Run It.


1. Exporting data is harmless and any fields in any table can be exported.


2. Select the table you want to export


3. Select the fields to export by selecting each field and selecting the > button or select >> to export all fields from the table.


4. Select the output location and the filename. I like to give a file name with a .csv extension so that it automatically opens with Excel.


5. Note that you can save a template for if you will be doing the same export multiple times. Then just use load template to recreate the export template.


6. Select Start to create the export file.


7. Once you get the export file, notice the various UID field. These are used to uniquely identify the records and MUST be used in the import process to avoid duplicating data.


8. Open the created file in Excel and do data manipulation as required.

Import Data: Utilities>Utilities>Import Data, Run it.

NOTE: IMPORTING DATA CAN CAUSE CORRUPTION OF YOUR DATABASE OR CREATE DUPLICATE RECORDS THAT WILL BE VERY HARD TO EXTRACT. ALWAYS MAKE A BACKUP OF DATA BEFORE ANY IMPORT!!!!!!

There are two type of import, one for bringing in new records (data) and one for updating existing records.

Bringing in New Records:


1. Make a backup of your data.


2. I’m serious, backup your data if you haven’t already, do you realize the power that import provides!


3. File preparation: UID

Name

Number

Description

Cost

IN01/11/070528298900

GSD item

GSD Item

Item for testing

100

IN01/17/071058388901

Lift Rental

Lift Rental

Lift Rental

0

IN01/18/071012043361

Discount

Discount

Discount

0


a. To prepare the file, make sure the first line contains the field labels


b. Use UID from previous exports for any relational data. For example to import inventory and have it assigned to a specific vendor, you would use that vendor’s unique identifier “VendorUID”. You can also use the Match check box to match by a field, however UID matching is more robust.


c. Make sure you don’t have any blank lines as this may create blank data.


4. Now that you have backed up your data, you can proceed. Go to Utilities>Utilities>Import Data and select Run it


5.1 Select the file that you are using to import. Note the first line of the file should include the field labels that will be matched to data fields going into SME. This labels will show in the left side of the import.
5.2 Select the SME table you want to import into on the right. Some common import tables include the following: Cust for customers, Inventory for inventory, Vendors for vendors, Sales for Sales Leads. If you exported the table in the export section above, you should use the same name used for export. If you are not sure which table, contact support@h5sw.com.


6.1 SME7.1 and Newer: You can view the data to be imported in the View Data tab. ImportViewData.JPG
The Field Mappings tab will allow you to map the import file fields to SME fields.
If you do not want to import the column of fields, select do not import for that column.
To try to match to an existing SME record, select Attempt Match. For example, you might want to try to match a customer name in SME to update the record rather than create a new. Note: This approach is not as predictable as using UID's to match.
Select the SME field from the table to match.

ImportFieldMappings.JPG


6.Old Older versions of SME and SMP: Match the fields from SMP on the right side window using Move Up, Move Down and remove. You can select multiple items by selecting the first and hold down the shift and select the last in order to remove a bunch of fields.


7. Save the template at this time and give it a name.


8. This is your last chance, make sure you have backed-up you data before this step. Select Start.


9. Check the SMP and see if your import was successful, if not get everyone out of SMP and restore your backup.


Updating Existing Data: This process is more advanced and involves more data manipulation in excel.


1. New in SME6.3: Now you can match existing records with the match checkbox. This makes it easier to match than using UID’s. However, make sure that the field you are matching is unique and setup the same in SME. For example, if you want to match on Inventory names, make sure the name is EXACTLY the same in the import file and SME.


2. First backup your data.


3. Export the table that you will later be updating with the import. This will provide you with various unique ID’s (UID’s) or the matching names so that you don’t replicate data. See the export section.


4. Open the exported file in excel.


5. Update the fields you want to change. There are many methods for updating the data that are excel use issues and beyond the scope of this document. For example you can copy a list of prices from a price table and paste into the appropriate inventory item.


6. The most important thing to note is that you should retain the UID or the matched field of the record that you want to update so the record is not duplicated.


7. You do not need to update all the fields, just update the ones that are changing and include the UID.


8. Follow steps 3 through 9 above in the “Bringing in New Records” section.