Import customers sales channels
Use these steps to give many customers a sales channel, a type and contract data from a text file instead of entering them in the grid. The example imports one customer: the channel Supermarket, the type Retail, active, and contracted with number 15 since 01-01-2026.
Before you begin
- Your licence must include the distribution feature, and you need the Import Customers Sale Channels permission in Users Management, on the Reports page.
- The customer cards, the sales channels and the customer types (and the warehouses, if you import them) must already exist in the file. The import does not create them, and it rejects a line whose channel it cannot find. See Sales Channels and Customers Types.
- Prepare the file in UTF-16 (Unicode text), one line per customer, with the columns separated by a tab. The file format is explained in The file format. In the example the seven columns are:
Customer name Sales channel Customer type Status Contracted Contract date Contract no
Alnakheel Est. Supermarket Retail 1 yes 01-01-2026 15
- Write the customer status
1for active and0for inactive. Write contracted asنعم,1,متعاقد,Contractedoryes, in exactly these letters. Any other value means not contracted. - Write the contract number as a number. If it holds text, the program rejects the line.
- Close the file in any other program that holds it open for writing.
- Back up the company file if you are going to update the data of customers that already have a channel: updating replaces all the channel data, including what is not in the file.
Steps
- Open Distribution > Tools > Distribution Tools > Import Customers Sale Channels. The welcome page appears. Click Next.
- Type the file path,
D:\data\channels.txt, or click Preview... and choose it, then click Next. - Choose Tab, then click Next.
- The option Update Existing Customers' Sales Channels is ticked by default. Leave it ticked if you want to update the customers that already have channel data, and clear it if you want to add new customers only. Then click Next.
- Type
2in Start line to skip the header line. In the first row of the grid choose: Customer Name for the first column, Sales Channel for the second, Customer Type for the third, Customer Status for the fourth, Contracted for the fifth, Contract Date for the sixth, and Contract No for the seventh. - Click Start. If something is missing, a message names the missing field. Correct it and click Start again.
- Answer Yes to the question "Are you sure to start?Import Customers Sale Channels؟". The bar moves, then the result message appears. Click OK.
Result
A message shows "Imported records:" and "Unimported records:". In the example they are 1 and 0. The customer has a sales channel record: the channel Supermarket, the type Retail, the status Active, contracted with number 15 and date 01-01-2026. You can see it in the Select Sales Channels window after Refresh.
The program counts each customer name once in the message, so if you chose Account Code instead of Customer Name, each count is 1 or 0. The program does not list the failed lines. If their count is higher than you expect, look for the cause in the table below.
If something goes wrong
| Message or situation | Why it appears | What to do |
|---|---|---|
| "Must select customer name or account code" or "Must select either customer name or account code" | You did not choose a column for the customer, or you chose the name and the code together. | Choose only one of them. |
| "Must select sales channel, customer type, customer status, contracted, and warehouse code/name" | You chose none of sales channel, customer type, customer status and contracted. | Choose at least one of them. In practice choose Sales Channel, because a line whose channel is not found is rejected. |
| "Must select either warehouse code or name" | You chose the warehouse code and name together. | Choose one of them. |
| A line was not imported although its customer exists | The channel or the type in the file does not match its list, or the contract number holds text, or the customer has a record and the update option is cleared. | Correct the value, or tick the update option. |
The customer shows as not contracted although you wrote Yes | The program accepts yes in lowercase, Contracted with a capital first letter, نعم, متعاقد and 1. | Write one of these values in exactly these letters. |
| The customer shows as inactive although the status cell is empty | An empty cell and text that is not a number are read as 0, which means inactive. A column that you did not choose makes the customer active. | Write 1 for active. |
| A customer who had a record lost a channel, a type or a warehouse, or the contract date became the import day | Updating replaces all the data with what is in the file, and uses the import date if you did not choose the date column. | Choose in the file everything you want to keep, or clear the update option. |
| The warehouse in the file does not exist and the line was not rejected | The program ignores a warehouse it cannot find, and leaves the transposition warehouse empty. | Check the warehouse code or name in the file. |
| Every line failed, although the grid on the last page shows them correctly | The file is not UTF-16. | Save the file as Unicode (UTF-16). |
Related
This page applies to alameen ERP 10, version 10.1.79.764.