Troubleshooting
Despite every effort was made to make use13 robust and error-free, bugs are still possible, just like in any other program.
If you are getting an error while executing the use13 command, consider the following:
- Are you using the most recent version of use13?
To check for updates consult the SSC website. If use13 was installed from a beta-location, consider the release version.
If you installed a beta version from location other than SSC, the ado update
command would not know that a newer version is available at SSC archive, and would not report that an update is available.
Check the available version at RePEc.
Check the version of the installed use13 with the following commands:
which use13
mata use13_about()
- Are you absolutely sure that file is in Stata 13 format?
Stata 13 files must conform to dta specification 117 provided on Stata's website.
In particular Stata 13 files must start with the following content:
<stata_dta><header><release>117</release><byteorder>
If your file starts with a different content, use13 will not read it.
You can use Stata's command -type- to check the content in the header of the file:
type "filename.dta"
- Are you sure the file is not corrupted during the transfer?
Make sure the file is transferred properly: use binary mode for FTP transfers.
Zip the file before the transfer (checking of the integrity of the file will be done by the unzip-er automatically).
- Which software produced the file?
If the file was produced by software other than Stata, perhaps it could be faulty due to bugs in that software?
Early builds of Stata 13 were known to produce files not conforming to 117 specification.
Stata itself was not affected by this bug, and it was fixed in subsequent updates from StataCorp.
use13 contains a workaround for this known problem and should not be affected as well.
Resaving these files in updated Stata 13 helps.
- Is this file in dta 116 specification?
Files in format specification 116 exist, but the description of it was never released by StataCorp.
The converter use13 should produce an informative error message in such a case.
This is by desing.
- Has Stata's format changed again?
Perhaps the developers of StataCorp have changed the file format again after use13 was released while I was not paying attention? Let me know.
- Undocumented features?
There are currently no reasons to believe that there are any features in the _dta file format that are left undocumented.
Necessary information I request:
The following information is usually necessary during the troubleshooting. I would usually point you to this page if any of the items below are not clear.
- what was the command resulting in an error, exactly as you typed it?
- what is the error message, exactly as Stata reported it?
- what is the version/flavor/platform of Stata that you are using?
- what is the history of the data file? what software created the file? (name, version, platform, date)
- was the file transferred from one computer/system/platform to another?
- can Stata 13 itself open the file? (if Stata 13 is available).
- do you have only one such file (random error)? or you have a number of these files (error is systematic and likely reproducible)?
- if you know what is in the file (how many variables, how many obervations, how long are the long variables if present) please let me know this information.
- what is the file size in bytes?
- can you make the file available to me? (do not send the data in the first communication)
Further information may be required depending on the type of the problem.
sradyakin/at/worldbank.org