SME Import Export Process
SME and SMP5 Import and Export Process
SME and SMP5 provides a very open architecture for importing and exporting any data from the database tables using excel or 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 SME and many different purposes for importing and exporting information, so this is only a guide to adapt to your specific situation.
Importing into SME
- Before Importing - About UID
- Importing Customers
- Importing Contacts for Customers
- Importing Inventory Items
- Import Stock
- Importing Leads
- Importing contacts into Constant Contact
Please contact our support team for Custom Tabs import assistance.
Exporting data: Utilities>Utilities>Export Data, Run It.
- Exporting data is harmless and any fields in any table can be exported.
- Select the table you want to export
- Select the fields to export by selecting each field and selecting the > button or select >> to export all fields from the table.
- 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.
- 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.
- Select Start to create the export file.
- 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.
- 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:
- Make a backup of your data.
- I’m serious, backup your data if you haven’t already, do you realize the power that import provides!
- File preparation:
|IN01/11/070528298900||Widget Item||W56784576||Widget for widgeting||100|
|IN01/17/071058388901||Lift Rental||LR40||Lift Rental 40'||120|
|IN01/18/071012043361||Security Camera||SC100||Commercial Security Camera for Outdoor||240|
4. File Preparation Setup
- To prepare the file, make sure the first line contains the field labels
- 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.
- Make sure you don’t have any blank lines as this may create blank data.
- Now that you have backed up your data, you can proceed. Go to Utilities>Utilities>Import Data and select Run it
- 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.
- 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 email@example.com.
- SME7.1 and Newer: You can view the data to be imported in the View Data tab.
Updating Existing Data:
This process is more advanced and involves more data manipulation in excel.
- 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.
- First backup your data.
- 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.
- Open the exported file in excel.
- 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.
- 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.
- You do not need to update all the fields, just update the ones that are changing and include the UID.
- Follow steps 3 through 9 above in the “Bringing in New Records” section.
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.
- 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.
- Save the template at this time and give it a name.
- This is your last chance, make sure you have backed-up you data before this step. Select Start.
- Check the SME and see if your import was successful, if not get everyone out of SME and restore your backup.