Difference between revisions of "Importing Tariffs from CSV with wrong Regional Settings"

From Kolmisoft Wiki
Jump to navigationJump to search
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:


In order to import such files, we need to fix them a little.
In order to import such files, we need to fix them a little.
<br><hr><br>
FIle in Excel looks like this:


[[Image:crs1.png]]
[[Image:crs1.png]]
<br><hr><br>
Let's save it to CSV format:
[[Image:crs2.png]]
[[Image:crs2.png]]
<br><hr><br>
CSV looks like this and we see incorrect file format for MOR import (';' and ',' instead of ',' and '.'):
[[Image:crs3.png]]
[[Image:crs3.png]]
<br><hr><br>
Let's open this file in some editor (MS Word in this example - any other will be good also):
[[Image:crs4.png]]
[[Image:crs4.png]]
<br><hr><br>
We see same picture in MS Word also:
[[Image:crs5.png]]
[[Image:crs5.png]]
<br><hr><br>
In '''Find and Replace''' window enter '''Find what''': ',' and '''Replace with''' '.', e.g. we are fixing decimal values from ',' to '.':
[[Image:crs6.png]]
[[Image:crs6.png]]
<br><hr><br>
We replaced a lot of values:
[[Image:crs7.png]]
[[Image:crs7.png]]
<br><hr><br>
We see some improvement:
[[Image:crs8.png]]
[[Image:crs8.png]]
<br><hr><br>
Again in '''Find and Replace''' window enter '''Find what''': ';' and '''Replace with''' ',', e.g. we are fixing value separation from ';' to ',':
[[Image:crs9.png]]
[[Image:crs9.png]]
<br><hr><br>
Even more fixes done:
[[Image:crs10.png]]
[[Image:crs10.png]]
<br><hr><br>
We see correct file format:
[[Image:crs11.png]]
[[Image:crs11.png]]
<br><hr><br>
Let's save it to another correct file:
[[Image:crs12.png]]
[[Image:crs12.png]]
<br><hr><br>
Now you are ready to import this CSV file into MOR tariffs.
==Possible errors==
===International prefix===
If all your destinations are BAD - make sure you import them in E.164 format - e.g. WITHOUT international prefix.
Example of bad file:
[[Image:crs13.png]]
Same file but fixed:
[[Image:crs14.png]]
===Country instead of Destination===
If you have fields like
Afghanistan Mobile
Then in Step 2 this column should be assigned to '''Destination/OCN Name''' instead of '''Country/Direction'''.
If you will make mistake in this step you will get a lot of BAD DESTINATIONS in Step 4.

Latest revision as of 11:38, 4 April 2008

In many computers Regional Settings affects how CSV is saved from XLS file.

MOR accepts CSV file where values are separated by comma "," and decimal places by point "."

Very often values are separated by ";" and decimal places by comma ","

In order to import such files, we need to fix them a little.






FIle in Excel looks like this:

Crs1.png




Let's save it to CSV format:

Crs2.png




CSV looks like this and we see incorrect file format for MOR import (';' and ',' instead of ',' and '.'):

Crs3.png




Let's open this file in some editor (MS Word in this example - any other will be good also):

Crs4.png




We see same picture in MS Word also:

Crs5.png




In Find and Replace window enter Find what: ',' and Replace with '.', e.g. we are fixing decimal values from ',' to '.':

Crs6.png




We replaced a lot of values:

Crs7.png




We see some improvement:

Crs8.png




Again in Find and Replace window enter Find what: ';' and Replace with ',', e.g. we are fixing value separation from ';' to ',':

Crs9.png




Even more fixes done:

Crs10.png




We see correct file format:

Crs11.png




Let's save it to another correct file:

Crs12.png




Now you are ready to import this CSV file into MOR tariffs.


Possible errors

International prefix

If all your destinations are BAD - make sure you import them in E.164 format - e.g. WITHOUT international prefix.

Example of bad file:

Crs13.png

Same file but fixed:

Crs14.png


Country instead of Destination

If you have fields like

Afghanistan Mobile

Then in Step 2 this column should be assigned to Destination/OCN Name instead of Country/Direction.

If you will make mistake in this step you will get a lot of BAD DESTINATIONS in Step 4.