I get the following error massage when importing data into my workfile.
"File 'D:\Data\xyz.dta' has been corrupted (seek failed)."
I am using an Academic Standalone EViews 11 License and the data file has the size of about 3.5 GB. It can be imported by other software such as stata on my computer.
What exactly does the error mean and how can i import such a data set?
Error when importing *.dta data
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- EViews Developer
- Posts: 798
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
Re: Error when importing *.dta data
Do you know what version of Stata was used to generate the DTA file? It's possible that our support for DTA doesn't extend to particular versions. Also, your file is very close to the limit of a 32-bit application so make sure you are using EViews 64-bit to try and open the file.
Another suggestion would be to open the file in Stata, remove half of the data, and re-save it to a new file name to see if that works with EViews. If so, then you're probably hitting the maximum limit of DTA support within EViews. We'd need a copy of your 3.5GB DTA file in order to investigate.
Steve
Another suggestion would be to open the file in Stata, remove half of the data, and re-save it to a new file name to see if that works with EViews. If so, then you're probably hitting the maximum limit of DTA support within EViews. We'd need a copy of your 3.5GB DTA file in order to investigate.
Steve
Re: Error when importing *.dta data
Thanks for the help.
I'm using an EViews 64-bit version. I don't know the Stata version but other DTA-files, that are in the same data package are working just fine. It is just this one specific large data file. I already did remove lots of the unnecessary data but i would like to not have to use stata at all.
I cannot give you the data due to copyright restrictions.
Is there a data size restriction for the 64-bit version?
I'm using an EViews 64-bit version. I don't know the Stata version but other DTA-files, that are in the same data package are working just fine. It is just this one specific large data file. I already did remove lots of the unnecessary data but i would like to not have to use stata at all.
I cannot give you the data due to copyright restrictions.
Is there a data size restriction for the 64-bit version?
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Error when importing *.dta data
As a work around, try opening the data in Stata and saving it using SaveAs in a different version of Stata.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13313
- Joined: Tue Sep 16, 2008 5:38 pm
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Error when importing *.dta data
CSV will work, but if you can keep it in Stata then EViews will pick up value labels.
-
- EViews Developer
- Posts: 798
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
Re: Error when importing *.dta data
My suggestions were only meant to troubleshoot and pinpoint the specific problem, not come up with a workaround.
My guess is that the problem is due to file size, so trying to open it after removing half the data could answer that. EViews 64-bit can theoretically read files that are much larger than 4GB but it was originally a 32-bit program so there might still be some limitations in our STATA read code (which hasn't been touched in a long time) that is limited to 32-bit pointers (which has a ~4GB limit).
Simply resaving the file in STATA might also work, but then that'll point to version differences.
If cutting the file down in half doesn't work, then there's probably an issue with a specific series and/or reading some meta data. And unless we can reproduce that particular issue here, there isn't much we can do without the DTA file.
My guess is that the problem is due to file size, so trying to open it after removing half the data could answer that. EViews 64-bit can theoretically read files that are much larger than 4GB but it was originally a 32-bit program so there might still be some limitations in our STATA read code (which hasn't been touched in a long time) that is limited to 32-bit pointers (which has a ~4GB limit).
Simply resaving the file in STATA might also work, but then that'll point to version differences.
If cutting the file down in half doesn't work, then there's probably an issue with a specific series and/or reading some meta data. And unless we can reproduce that particular issue here, there isn't much we can do without the DTA file.
Re: Error when importing *.dta data
Thanks for the help. I already opened, downsized, and saved the data file in stata. Using that approach the import of the then smaller *.dta file works just fine. The whole point is, that i and other colleagues don't want to have to use stata anymore for working with the data.
Who is online
Users browsing this forum: No registered users and 13 guests