I will making use of dataport to import csv format sales transaction into NAV as sales order. It seems that there is field shifting if data source file (csv) with data char like " or ,
(Note, customer only provide csv format to us)
CSV format
"14""LCD","18/F, Victor's Buliding,","23, Java Street,"
What should be the setting in dataport e,g, FieldStartDelimiter, FieldEndDelimiter, FieldSeparator,... in order to have following result after import.
Item description =14"LCD
customer address line 1 =18/F, Victor's Building,
customer address line 2 =23, Java Street,
Thanks for sharing.
0
Comments
But here in you scenario the Item Description contains also a " before the LCD (2x).
So, i'm sure NAV think it's a new field (i've not test it).
So, ask your customer if he can change the FieldStart/EndDelimiter for example to ° or ^ or | (use a sign that is not in the field as description)
or use as FieldSeparator a sign that is not in the Fielddescription. so you doesn't need the FieldStart/EndDelimiter and in NAV you set this in the property to None.
Regards
If you import a csv file into excel, you have the option to "say" wich sign is the delimiter, but not on export (Save as) per default.
But with my little macro you can also define which Delimiter excel should use ;-)
No guarantee that it works in your excel version.
Regards
Ritesh K Singh
In all honestly, with the exception off one of "quick jobs" I would never use a DataPort.
ERP Consultant (not just Navision) & Navision challenger
try open CSV file in Excel, change all occurences of " to ^ (this is only example), import records into NAV and then change all occurences of ^ back to ".
Requisite on the import :
1. Customer can only provide csv to me (as their souce is download from ebay)
2. I prefer not to open the csv file for further editing as it may contain many eurpoean language, if I open it, some european language become weird.
Ebay provides plent of space for descriptions.
14" instead of 14inch IMHO was just laziness.
Our descriptions were just like that until I stated to the people who enter our descriptions that they should NOT use certain characters (quotes, commas and asterisks being some of them).
At the time we didn't do any importing or exporting but I knew 1 day it would bite us if we didn't keep our data clean.
Sounds like a lot of work but in the end I believe it would be worth the effort.
http://www.BiloBeauty.com
http://www.autismspeaks.org
just my opinion anyways
Open the CSV with Excel, and export the data to a flat text file, using the TAB character as the field separator, and no field start and end delimiters. Set your field separator as <TAB> and field start and end delomiters to <None>, and you're all set to import the flat text. That is the only reliable way that I have been able to get dataports to work properly.
For some reason dataports simply do not work with " as field start and end, and commas as field separator. When a dataport comes in contact with a " it thinks it is the end of the field, even when there is no , to separate the fields. This has never worked properly.
RIS Plus, LLC
RIS Plus, LLC
May I know what language pack I need to install in order to display common european lanugage properly in NAV e.g french, Italian, German, Spainish,.....
Locale : English (United Kingdom)
Data :spain España
After import via dataport : spain Espa±a (become weird char)
If I use cut and paste : spain España (normal)
Why???
If you receive the CSV file directly from the customer(Not creating it from Excel) than there is one very simple solution:
In Dataport-Properties change the values in FieldStartDelimiter and FieldEndDelimiter wich are <"> with <None>.
That`s all you need!
How will it know where the start & end of a field is?
the dataport will only rely now on the Field Seperator of comma (in this case)
his example of "23, Java Street," will cause a problem.
With his data containing Commas & quotes a distinctive Start & End Delimiter would be solve the problem.
But as Denster said you could open it in excel & resave it forcing tab seperators.
As long as they do not mind adding another step
http://www.BiloBeauty.com
http://www.autismspeaks.org
where is there the problem?
RIS Plus, LLC
RIS Plus, LLC
Then you will not have to leave NAV for manipulating the file in Excel. Example where I had to remove binary zeroes from a .csv file (I made this from memory so syntax errors could occur):
You could of course also save the original file, but I have not done that in this example