Type Conversion Failure

GreenWizard

Board Regular
Joined
Dec 8, 2013
Messages
106
I've been importing excel files into a MS Access database from some time now. Recently the imports started failing siting 'Type Conversion Failure'. After troubleshooting I identified that the cells in question are blank cells. My issue is that blank cells were never a problem up until recently. In fact I can re-import my older excel files without a problem, and those excel files have blank cells in the related columns. I've also compared the excel files that work with the excel files that fail. The blank cells from both files have the 'General' format and they all appear to be blank without any extra spaces.

Any idea what could be the problem?


Much Appreciated!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Importing Excel files into Access is a tricky/flaky process. The issue is that Access tries to "guess" the format of each field rather than let you tell it what it is. And sometimes it guesses wrong, and doesn't give you a whole lot of help in identifying exactly what the issue is.

When Access makes this "guess", I believe that it only looks at the first 10 rows of data. So, files that have blanks in the first 10 rows versus files that have their blanks below row 10 might behave differently.

I have had issues with this in the past where I mess around with these type of issues for quite a while, without ever really finding what the problem is. I now typically export my Excel files to a text file, and then import those where I have complete control over the format of each and every field.
 
Upvote 0

Forum statistics

Threads
1,221,875
Messages
6,162,563
Members
451,775
Latest member
Aiden Jenner

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top