worldbank / iefieldkit

Stata commands designed for Impact Evaluations field work. These are tools that are used during/after a survey in the field for data quality monitoring.
MIT License
38 stars 18 forks source link

iecodebook: "survey" causes uninformative error #205

Closed bbdaniels closed 2 years ago

bbdaniels commented 2 years ago

If used repeatedly, iecodebook tries to overwrite the survey label and redefine the survey variable. This causes an uninformative error and stops execution. This will also happen if these variables already exist in any dataset. This behavior can be resolved with the generate() option but this is not apparent from the error and is clunky to resolve after encountering as written.

Suggested fix: