Hi @Josh ,
May I also request your help for this? I’ve got 3 projects that are not downloading mix matrix, ranking and some even text questions.
1 Like
Josh
October 19, 2021, 9:57pm
2
Hi @ap_tunesien , can you please send me the details I requested above in a private message so I can investigate.
2 Likes
@ap_tunesien , you could send me a private message as outlined in the post discussed previously:
Hi @Lavinia ,
You could send a private message to a user in the community forum as follows:
Option 1: Sending a private message
Step 1: Select the Reply button as boxed in red below.
[Image 1]
Step 2: Select the Reply button once again, but now from this place, as shown in the image below.
[Image 2]
Step 3: Now select New Message as shown in the image below.
[Image 3]
Option 2: Sending a private message to me
Step 1: Click on my username Kal_Lam.
Step 2: Then on the right, click the…
1 Like
@ap_tunesien , when I logged into your account, I could see that the variables were unchecked under Select questions to be exported
. Press Select all
, and then you should be able to download all the variables in your XLS data format.
Thank you @Kal_Lam , I had made numerous downloads, and there are still some missing data that I can’t see either on xls or xlm. The issue is as follows: rating & matrix questions are visible in Kobo ToolBox but have not been downloaded even after selecting all variables. Is there something else that I need to tick?
OK, would you mind having a look at this post discussed previously? It should help you explain how these data look like:
Hi @sothearychheang1 ,
If you view the DATA>Table clearly, you should see the following:
[Image 1]
Here, the blanks red box are the question labels while the green box are the options you have chosen for those labels.
Thus, kindly please be informed that your data for the questions are not missing.
This is well noted! Thanks @Kal_Lam . To my last question - how do I then make sure the information is downloaded?
1 Like
Check out the response code
as shown in the post shared above.
Perfect! Thanks for all your help.
1 Like
Josh
October 20, 2021, 5:15pm
11
Hi @ap_tunesien , this seems to be a bug in how the fields are being sent to filter the exported columns. I will create a GitHub issue for this. In the meantime before a fix is made, please have the switch labelled, “Select questions to be exported”, toggled to the off-position:
2 Likes
Josh
October 20, 2021, 5:55pm
13
Hi @ap_tunesien , you can track the issue here:
opened 05:54PM - 20 Oct 21 UTC
bug
## Description
Community report: https://community.kobotoolbox.org/t/i-ve-got… -3-projects-that-are-not-downloading-mix-matrix-ranking-and-some-even-text-questions/23682/11
Zulip discussion: https://chat.kobotoolbox.org/#narrow/stream/4-KoBo-Dev/topic/Custom.20exports/near/66892
KoBo-specific question types don't export submission data correctly when filtering fields in "Advanced options".
## Steps to Reproduce
1. Use the a form with a KoBo question type (this one is from the [support page on Matrix questions](https://support.kobotoolbox.org/matrix_response.html#create-a-question-matrix-in-xlsform))
### survey
| type | name | label | required | kobo--matrix_list |
| --- | --- | --- | --- | --- |
| begin_kobomatrix | M1 | Items | | assets |
| select_one yn | Q1 | Q1. Which assets do you have at home | TRUE | |
| integer | Q2 | Q2. Number of assets | TRUE | |
| end_kobomatrix | | | | |
### choices
| list_name | name | label |
| --- | --- | --- |
| assets | car | Car |
| assets | bike | Bike |
| assets | tv | TV |
| yn | yes | Yes |
| yn | no | No |
### settings
| style |
| --- |
| theme-grid no-text-transform |
2. Submit some data
3. Export without any filter fields 👉 all data is exported
4. Export with any or all fields selected 👉 data from KoBo question type not exported. The following is is sent to the BE for filtering:
```
{
...
"fields": [
"M1/Q1",
"M1/Q2",
],
...
}
```
If we look at the asset `content.survey` JSON, we see why this is the case:
```json
[
{
"name": "M1",
"type": "begin_kobomatrix",
"$kuid": "Mex7rGeF6",
"label": [
"Items"
],
"$autoname": "M1",
"kobo--matrix_list": "assets"
},
{
"name": "Q1",
"type": "select_one",
"$kuid": "Vwi0pHZ4A",
"label": [
"Q1. Which assets do you have at home"
],
"required": true,
"$autoname": "Q1",
"select_from_list_name": "yn"
},
{
"name": "Q2",
"type": "integer",
"$kuid": "MlNQNjPMM",
"label": [
"Q2. Number of assets"
],
"required": true,
"$autoname": "Q2"
},
{
"type": "end_kobomatrix",
"$kuid": "wNIn8EeUO"
}
]
```
However, the `kobomatrix` group structure is [transformed behind the scenes](https://github.com/kobotoolbox/kpi/blob/master/kpi/utils/xlsform_preprocessors/kobomatrix_handler.py) resulting in this survey structure:
### survey
| type | name | label | appearance | required |
|---------------|----------------|------------------------------------------|-----------------------|------------|
| begin_group | M1_header | | w5 | |
| note | M1_header_note | **Items** | w1 | false |
| note | M1_header_Q1 | **Q1. Which assets do you have at home** | w2 | false |
| note | M1_header_Q2 | **Q2. Number of assets** | w2 | false |
| end_group | | | | |
| begin_group | M1_car | | w5 | |
| note | M1_car_note | ##### Car | w1 | false |
| select_one yn | M1_car_Q1 | | w2 horizontal-compact | true |
| integer | M1_car_Q2 | | w2 no-label | true |
| end_group | | | | |
| begin_group | M1_bike | | w5 | |
| note | M1_bike_note | ##### Bike | w1 | false |
| select_one yn | M1_bike_Q1 | | w2 horizontal-compact | true |
| integer | M1_bike_Q2 | | w2 no-label | true |
| end_group | | | | |
| begin_group | M1_tv | | w5 | |
| note | M1_tv_note | ##### TV | w1 | false |
| select_one yn | M1_tv_Q1 | | w2 horizontal-compact | true |
| integer | M1_tv_Q2 | | w2 no-label | true |
| end_group | | | | |
Therefore to correctly include all the matrix fields, the export data should look like this instead:
```
{
...
"fields": [
"M1_car/M1_car_Q1",
"M1_car/M1_car_Q2",
"M1_bike/M1_bike_Q1",
"M1_bike/M1_bike_Q2",
"M1_tv/M1_tv_Q1",
"M1_tv/M1_tv_Q1"
],
...
}
```
## Expected behavior
Export includes all selected data.
## Actual behavior
Data is missing.
2 Likes
Thanks @Josh ! I only wish I was at a level of understanding all these codes. For the moment I’m still learning what this all means
Josh
October 21, 2021, 5:49pm
16
Hi @ap_tunesien , you shouldn’t have to worry about the code—unless you’re wanting to do some debugging, development work and/or integrating with the API, etc.
2 Likes
Vico
March 31, 2022, 3:24pm
17
HI @Josh
I noticed the same issue with select_one_from_file
question.
I’ve seen on the GitHub issue that you speak of KoBo-specific question types but I don’t know whether this question type is part of them or not.
And I had come to the same conclusion of having to turn off question selection for export for successful export
Best regards