Hello-
I've setup a database that parses large amounts of incoming text feeds. It works great but I've noticed that occasionally some corrupt data comes in. However when looking back through a specific example it actually appears the data is fine and when access is importing the file (via the transfertext method), it mysteriously drops a character. I traced back to the file in question and have figured out how to easily replicate the problem, and it does it every time. For the life of me I can't figure out why. I'm wondering if perhaps there are special characters in here that I cannot see that is causing that single line not to parse correctly? I would be extremely grateful if anyone could point me in the right direction. And if you don't want to try and recreate it, any general advice on a text viewer that could help me rule out special characters (i.e., new line / carriage return) would be helpful. I'm using notepad/wordpad.
Here's how to reproduce the problem:
Take the attached file, do a new table import in access. Default settings, first line is headers, comma delimited. The file imports fine and all the data is ok EXCEPT one line... I believe it's line 159, but the easiest way to know for sure is to do a find for the number "1598486731" which appears only once in the "orderID" column. The field that ends up being incorrect in access is the first number in that row, the "price" field. The text file clearly shows the value to be 110999999.94 but access imports it as 10999999.94. I.e., it drops the 1 in the front. If you view it in excel or wordpad it looks fine.
help! Thanks so much in advance.
Note: I am running this file through a perl script before it gets to access, so I can probably manipulate it to filter out what's causing the parsing to fail, if I knew what it was :/
I've setup a database that parses large amounts of incoming text feeds. It works great but I've noticed that occasionally some corrupt data comes in. However when looking back through a specific example it actually appears the data is fine and when access is importing the file (via the transfertext method), it mysteriously drops a character. I traced back to the file in question and have figured out how to easily replicate the problem, and it does it every time. For the life of me I can't figure out why. I'm wondering if perhaps there are special characters in here that I cannot see that is causing that single line not to parse correctly? I would be extremely grateful if anyone could point me in the right direction. And if you don't want to try and recreate it, any general advice on a text viewer that could help me rule out special characters (i.e., new line / carriage return) would be helpful. I'm using notepad/wordpad.
Here's how to reproduce the problem:
Take the attached file, do a new table import in access. Default settings, first line is headers, comma delimited. The file imports fine and all the data is ok EXCEPT one line... I believe it's line 159, but the easiest way to know for sure is to do a find for the number "1598486731" which appears only once in the "orderID" column. The field that ends up being incorrect in access is the first number in that row, the "price" field. The text file clearly shows the value to be 110999999.94 but access imports it as 10999999.94. I.e., it drops the 1 in the front. If you view it in excel or wordpad it looks fine.
help! Thanks so much in advance.
Note: I am running this file through a perl script before it gets to access, so I can probably manipulate it to filter out what's causing the parsing to fail, if I knew what it was :/
Attachments
Last edited: