Premier IT Outsourcing and Support Services within the UK

User Tools

Site Tools


Our Import tool is fairly flexible but does have some specific requirements when supplying data to us. Please read the information below in its entirety.

File format should be CSV with UTF-8 / ASCII encoding. All lines within a CSV must have the same number of delimiters, There should NOT be a header row at the top of the file and if one is included it will be stripped.

The actual names of the columns are for readability only but the column order must remain consistent. If you have not followed the standard format and subsequently wish to change the order and/or add/remove columns then this must first be communicated so we can make changes to the import process.

Where a data element would contain the separator for CSV, a comma, it should be removed and not supplied.

Some characters are prohibited regardless of quoting or escaping and those are defined below under Prohibited Characters

The column data is defined below. Where data is not mandatory it can be optionally supplied, but if supplied must be valid.

Incoming File Format Specification

Column NameFormatMandatoryAgentVisibleDescription
TitleVARCHAR(10)NYThe Title such as Mr, Mrs, Miss etc.
ForenameVARCHAR(30)NYFirst or given Name.
SurnameVARCHAR(30)NYLast or Family Name.
Address1VARCHAR(40)NYAddress Line 1, usually house number
Address2VARCHAR(40)NYSecond Line
Address3VARCHAR(40)NYThird Line
CityVARCHAR(40)NYCity Name
CountyVARCHAR(40)NYCounty Name
PostCodeVARCHAR(12)NYPostCode properly formatted
CountryVARCHAR(3)NYANSI Country Code
Phone1VARCHAR(20)YYPrimary Phone Number
Phone2VARCHAR(20)NYFirst Alternative Number
Phone3VARCHAR(20)NYSecond Alternative Number
EmailVARCHAR(64)NYEmail Address
CallDataLine1VARCHAR(64)NYInformation to be displayed to the Agent Line 1
CallDataLine2VARCHAR(64)NYInformation to be displayed to the Agent Line 2
CallDataLine3VARCHAR(64)NYInformation to be displayed to the Agent Line 3
SrcRef1VARCHAR(64)NNSource Data Reference 1
SrcRef2VARCHAR(64)NNSource Data Reference 2
SrcRef3VARCHAR(64)NNSource Data Reference 3
CallBackDateDATETIMENNThe Date to begin calling in the format DD/MM/YYYY
CallBackSlotINTNNThe Time to attempt the call as a single hour number. e.g. 10 = 10:00-11:00

CallDataLineN : Information to be displayed to the Agent. This data is shown on the agents screen when the call pop's and should contain any information the agent would require during their activity. An example would be an account number.

SRCREFN : Source Data References are used to tag each record with one or more identifiers that would be required in any subsequent data return or reconciliation process. This is traditionally used to hold a Unique Reference Number from the data supplier.

Prohibited Characters

Any character less than 0x20 or greater than 0x7e with the exception of 0x0a, 0x0d are prohibited in source files and 0x25, 0x26, 0x27, 0x60 should be avoided if at all possible.

Example Files

The files below are valid examples, not definitions.

CSV FileFormat

Mr,Fred,Bloggs,24,Stoney Street,,Nottingham,Nottinghamshire,NG1 7AW,01159857040,Catalog: SimplyFun,013463465N
Mr,Joe,Soap,16,Arkwright Street,The Park,Nottigham,Nottinghamshire,NG1 8FP,01152358845,Catalog: EnjoyingData,028573568X


Filenames MUST BE Alphanumeric and underscore only with no spaces or other symbols at all, with an extension of .csv. It is STRONGLY RECOMMENDED that filenames are all lower case but this is not a requirement, the extension should be lower case as indicated.

The Transfer Filename format should be identified and defined clearly so our import process knows what its looking to import. A good example would be vendorname_YYYYMMDD.csv.

The FOLDER into which you upload the files is critical in determining the destination of the data on our systems so you must ensure data is loaded to the correct folder.

If you will be supplying multiple varying files then an example would be vendorname_filetype_YYYYMMDD.csv

An example for a supplier named PPP would be ppp_20190504.csv, or ppp_1_20190504.csv & ppp_2_20190504.csv

Import File Acceptance and Configuration Process

When you have constructed a file in the format above and wish to begin the process of supply then the following should be observed.

The Transfer Method should be identified and defined. We can accept files provided to Secure FTP and we will setup a specific Secure FTP service for each data vendor. Our servers support SFTP, FTP, FTPS and WebDAV.

The Transfer Schedule should be identified so we know how often to check for new data.

The Data Return process should be clearly defined (if any) so that we can write the required code to produce it.

Testing Phase

A sample file should be supplied to the agreed Secure FTP using the agreed filename.

We will then code our import process to read this file and setup the mapping between columns and our database. We will validate each column as supplied and feedback.

Import Notifications and Fallout can be advised by FTP or email and this will be setup as required.

We will produce a data return based on this test file (if required) and deliver this to the Secure FTP where it can be collected and validated by the data vendor.

The above process should be repeated as many times as necessary to ensure that both parties are confident that the process is correct.

Production Phase

Once testing is complete then we can begin live operations on a date mutually agreed upon. All test files/data should be purged from the Secure FTP and system before this date.

During the first week of live operation, log files should be examined to ensure no post testing issues have arisen.

/data/webs/external/dokuwiki/data/pages/ccm/data_import.txt · Last modified: 2020/09/11 08:59 by genadmin