Hi,
I'm importing Excel values to NAV and noticed may of the values get distorted... Value in excel stores as say 35.1 is saved to Excel buffer table as 35.100000002 this happens almost for every value.
The value in Excel really is 35.01, no rounding issue there of decimal places hidden.
This seem to be known issue, searching forum I found similar problems reported
viewtopic.php?f=23&t=35899&hilit=excel+import+problem
or
viewtopic.php?f=23&t=42672&hilit=excel+import+problem
The problem seem to be in Excel Buffer table, function ReadSheet()
There is a line where the is formatted and it is on this line when the value changes, I suspect it is the formatting that does that
..
..
..
"Cell Value as Text" := DELCHR(FORMAT(XlWrkSht.Range(xlColID + xlRowID).Value),'<',' ');
..
..
..
I would like to only get the value AS IT IS in the excel, clearly it is the FORMAT function that is somehow changing this... And I ssupectet this is wrong by design for quite some time probably.
I tried to force format as FORMAT(XlWrkSht.Range(xlColID + xlRowID).Value,0,'<Char>') and some other... but can't get it right. Having no experience with formatting before, what would be the proper FORMAT parameters to only pick the values for teh text avoiding these 0.000000000001s to be added or subtracted from the original values stored in file??
This is the error I see most often when trying various format parameters..
Microsoft Dynamics NAV Classic
There are errors in the text conversion because text no. 121-2000 does not exist in the .stx file.
Internal error: 47-1
OK
Comments
and adjusted
\:D/
You are 99,99999% sure that this will work ONLY on those strange values.