Status:Closed    Asked:Nov 08, 2013 - 11:00 AM

I get an error code in STATA when I run the do file. Variable is defined twice. How should I correct?

I successfully downloaded and decompressed my data. When I run the do file, I get an error code because one of the variables in the dataset is defined twice.

I checked the data dictionary and it looks like this variable appears in two different columns. How should I correct this?

Do you have the same question? Follow this Question

Staff Answer




The first recommendation when encountering this kind of problem is to recreate the extract from scratch. Occasionally, revising and resubmitting fairly old extracts has lead to problems of doubled variables, and creating a new extract has solved the problem. If you continue to experience this problem, please send us an email at


Nov 08, 2013 - 03:02 PM

Report it


1.With data quality flags, do file won't finish, "qage already defined." 2.On...
SAS - Error: Format X_F not found or couldn't be loaded for variable X.
Data file (.gz) is corrupted (error code 32, "broken pipe"), and site won't l...
ACS dataset incorrect (...or Stata setup file didn't work)
Login   |   Register

Recently Active Members

View More »

Share |