Solved

Unparsable Values in Access

Posted on 2004-10-05
3
256 Views
Last Modified: 2008-03-17
I have four excel files that have the same columns in the same order and very similar data. The only difference between these four files that these four files came from four different regions of our company. Each file has approx. 150 columns and anywhere from 30000 to 55000 records.

I wanted to import these files into Access, as one combined table to make this data managable. The first two files imported easily, using the Access Import Wizard. Each file created an error log which contained some "type conversion" errors, but a too few records to worry about (less than .02%).

The other files were very problematic and would not import into Access. I attempted to clean up the data by making sure that each text field had 255 or fewer characters. This allowed me to import the tables; however the error log showed "Unparsable Records" and there was a significant number of errors - average of one error per record. I tried to determine if just a few fields were problematic, however the affected fields are all across the board.

I started to double check the records in Excel and the new Access table. Most of these records are one worded fields (ie Yes or John Smith). Nothing legthy or with unusual characters.

Any idea why I am getting these errors or how I can prevent them?

Thanks in advance for your help!

Monica
0
Comment
Question by:monicasoi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 41

Accepted Solution

by:
shanesuebsahakarn earned 500 total points
ID: 12232626
Probably fields that Access cannot parse using its default type conversion algorithms (date fields are particularly problematic in this regard, as well as certain formats of text fields). I would recommend importing the data into a table where all the field are data type text first. Now run an append query from this "temporary" table into your real table and include your own type conversions functions where necessary.
0
 
LVL 26

Expert Comment

by:Alan Warren
ID: 12234280
You may have more success linking to the sheets using the linked table manager, then run your append sql as local.
Might work, but should possibly get a better error description.


Alan
0
 
LVL 39

Expert Comment

by:stevbe
ID: 12236706
I hate how Access and Excel do/ not talk to each other. I like to save the Excel file as CSV and link to that in Access and then run an append query like Alan suggested or process it as a recordset to validate cross field values. Using code, allows for a great deal of flexibility, I have some that require the entire file is correct before importing and some where I load the good records into production and bad records into a "holding" table for correction which after changes can be use to validate and put into production.

Steve
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question