Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS trying to import empty Excel rows.

Status
Not open for further replies.

PNC

MIS
Jun 7, 2001
87
US
Hi,

I'm trying to do an import from an excel file, but I get an error message saying that the destination field cannot be null at row 29, but row 29 is empty in my Excel file.

Why is DTS trying to import the empty rows from the file?
 
Is there any data after row 29 in your excel file, (check rows and columns outside your expected range as well)?



[tt]|_ |_ _ | _ _
|, | )(/, |(_)| )
'[/tt]
 
No absolutely nothing!?!

I did the import using a query instead of the copy function, but I'm still curious as to why it didn't work.
 
As a test open your excel file and select the first blank row and all the rows after and delete them using the delete in the edit menu(do not just use the delete key). Then try to import them.
 
As another test ... cut and paste the needed 29 rows into another worksheet. The save the worksheet to another name and have your DTS package source connection point to this new test file. Try to execute the package and lets see if the import works.

Thanks

J. Kusch
 
1) I tried the Edit --> Delete, it did not work.

2) I created a new file, and copied the rows, that worked.

Thanks,
PNC.
 
Not sure what to tell you. Sounds like DTS found something in the rest of the 32,000+ rows below your good data. Can you work with the newly created file and forego using the bunk one?

Thanks

J. Kusch
 
From now on I will always create a new file, I think that's the best solution.

Thanks everyone.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top