====== Problem Solutions for Data Retrieval ======

Normally the [[:en:results:download|data download]] works fine -- if not, this chapter provides solutions.


===== No cases in data set =====

You have downloaded and opened the data, but only see the header (CSV) or only the variables (SPSS or R) without any cases in the data set?

==== Filter Criteria ====

Please check the settings under **Collected Data** -> **Filter Criteria for Valid Cases**. For example, SoSci Survey automatically switches off "Pretest" and "Survey development" under //Interview context (MODE)// after the start of the survey administration period. If you want to retrieve test data, activate these two options again.

Also check the setting //Interview progress//. Select "All records" to retrieve even those cases in which the FINISHED variable has the value 0 ([[:en:results:variables]]).

{{:de:results:scr.datafilter.png?nolink|Setting for the selection of valid cases}}

After saving ({{:button.save.png?nolink|Save Settings}}), check the //Summary// at the bottom on how many cases match the filter.

==== Visual Inspection ====

Open **Collected Data** -> **View Data Set**. On the upper left at //Questionnaire// selec the option "[All]". Now, you will see all the records collected in your survey project.

{{:de:results:scr.data.view-filter.png?nolink|View Data Set}}

Pay attention to the color of the case number (CASE) on the left. Blue cases are retrieved by **Download Data**, grey cases do not match the filter currently set in **Collected data** -> **Selection criteria for valid cases** (see above).


===== Shifted columns in CSV =====

If you encounter problems opening the CSV file in Microsoft Excel, please read [[:en:results:import-excel#problems_while_importing|Data Import in Microsoft Excel: Problems while Importing]].


===== Truncated Texts in Excel ======

If an open-ended text entry starts with a minus sign (''-'') -- often used by respondents as indents of an enumeration -- then Excel may cut off the text after 255 characters ([[https://superuser.com/a/776614/141023|contribution in superuser]]). Microsoft has not yet provided a bugfix for this bug.

One possible solution is to open Excel first. Then select **File** -> **Open** from the menu and explicitly define the affected column as //Text// in the import wizard (be careful to select the correct encoding for umlauts and the text recognition character!). However, multiple-line text entries may not be recognized correctly.

It is easier to open the CSV file first with OpenOffice, then save it as an XML file and then (if desired) open it in Excel.


===== Shifted columns in SPSS =====

If, when importing the data into SPSS, everything looks good at first, but then suddenly data is found in an incorrect variable, this may be because (a) you are using a very old version of SPSS or (b) one of your participants has given a very long response.

Under **Collected Data** -> **View Data Set**, please check first that the problem really is caused by importing data into SPSS.

Then please use the [[:en:results:import-spss-csv|SPSS-Import via CSV]].


===== Missing decimal numbers in SPSS =====

Depending on the language version, SPSS (like other software) expects either a comma (German) or a dot (English, etc.) as decimal separator for decimal numbers. If the data was imported correctly into SPSS by and large, but decimal numbers are missing, check whether the setting for downloading the data matches the language version of your SPSS: **Collected Data** -> **Download Data** -> //SPSS// -> Decimal separator.

{{:de:results:scr.data.spss.decimal.png?nolink|Setting the decimal mark when downloading the data}}

If you are importing CSV files (e.g. in Excel or Stata), you can also find this setting for CSV files in the //CSV// tab.


===== Strange Characters in SPSS Variable Names =====

If you use non-Western European characters for your variables (Russian, Korean, Chinese, etc.) SPSS may not open the syntax file for import correctly. Instead of the correct variable labels and value labels, there will then be a jumble of characters.

  - First make sure that Unicode is enabled in SPSS: SPSS Menu -> **Edit** -> **Options** -> Tab //Language// -> //Character encoding for data and syntax// -> select the "Unicode" option here.
  - Do not open the SPS file (syntax) by double-clicking in the browser or Explorer, but in SPSS via the menu **File** -> **Open** -> **Syntax**. Select the SPS file here and select the "Unicode (UTF-8)" option as //Coding//. Then click on //Open//.

{{:de:results:scr.troubleshooting.spss.utf8.png?nolink|SPSS: Open Syntax}}

