Enketo edit record loading error

Hello Kobo Team,

I am using kobo-docker using local setup. I have created one survey form and collected data. Today I updated the survey form by adding couple of questions. After redeploying the survey, I am not able to edit the records that were previously collected. Below is the screenshot for the same.

Any support for this?

Regards,
Amar

Kobo Team :

Any updates on this issue. As it still persist in the latest kobo-docker update.
We are not able to update the records.

Regards,
Amar

···

On Monday, February 6, 2017 at 6:30:39 PM UTC+5:30, Amar Kamthe wrote:

Hello Kobo Team,

I am using kobo-docker using local setup. I have created one survey form and collected data. Today I updated the survey form by adding couple of questions. After redeploying the survey, I am not able to edit the records that were previously collected. Below is the screenshot for the same.

Any support for this?

Regards,
Amar

To reproduce this issue follow below steps,

  1. Create and deploy a form with any number of fields.
  2. Fill atleast one entry using kobocollect app or Enter data in browser links.
  3. Update the form say by adding new field and redeploy the same.
  4. Now try to edit the #2 entry. This will give you message “error trying to parse xml”.
    Regards,
    Amar
···

On Monday, March 27, 2017 at 12:36:46 PM UTC+5:30, Amar Kamthe wrote:

Kobo Team :

Any updates on this issue. As it still persist in the latest kobo-docker update.
We are not able to update the records.

Regards,
Amar

On Monday, February 6, 2017 at 6:30:39 PM UTC+5:30, Amar Kamthe wrote:

Hello Kobo Team,

I am using kobo-docker using local setup. I have created one survey form and collected data. Today I updated the survey form by adding couple of questions. After redeploying the survey, I am not able to edit the records that were previously collected. Below is the screenshot for the same.

Any support for this?

Regards,
Amar

hey kobo folks:

any more news on this. We’d be happy to help debug / fix the issue if you’ll can guide us on this.

a response would be highly appreciated :slight_smile:

lobo

···

On Monday, March 27, 2017 at 12:14:57 AM UTC-7, Amar Kamthe wrote:

To reproduce this issue follow below steps,

  1. Create and deploy a form with any number of fields.
  2. Fill atleast one entry using kobocollect app or Enter data in browser links.
  3. Update the form say by adding new field and redeploy the same.
  4. Now try to edit the #2 entry. This will give you message “error trying to parse xml”.
    Regards,
    Amar

On Monday, March 27, 2017 at 12:36:46 PM UTC+5:30, Amar Kamthe wrote:

Kobo Team :

Any updates on this issue. As it still persist in the latest kobo-docker update.
We are not able to update the records.

Regards,
Amar

On Monday, February 6, 2017 at 6:30:39 PM UTC+5:30, Amar Kamthe wrote:

Hello Kobo Team,

I am using kobo-docker using local setup. I have created one survey form and collected data. Today I updated the survey form by adding couple of questions. After redeploying the survey, I am not able to edit the records that were previously collected. Below is the screenshot for the same.

Any support for this?

Regards,
Amar

Hi Amar and lobo,

Sorry for the delay in responding to this, and thanks lobo for bringing this back up because we agree that it is important to address. The issue here involves our decision last year to start to support multi-versioned forms (aka. redeployment). The issue of how to edit submissions to previous versions is a complicated one because of kobocat’s structure as an ODK/OpenRosa endpoint, and how enketo is paired with kobocat.

The most direct way to edit submissions to old versions of forms is to redeploy that particular version, which would make submissions to that version function normally. I understand this is not acceptable for most users. The most actionable solution that I see being built, however, would allow the user to revert the deployment back to a previous version of the form (from a list of versions). This would be a clunky solution.

Beyond that option, another path could be to create an endpoint in kobocat that simulates a deployment of an old version, directs Enketo to that endpoint, and opens the submission in that context. This could take a bit of work on the kobocat end, and involves a direction that we do not currently have in our sights. It’s possible, though, that I am overestimating the work this would take on the kobocat end. In our experience, kobocat modifications are very hard to estimate, which is why we are transitioning the functionality piece-by-piece over to the kobo-api (kpi) project.

And finally, a third solution that I believe is feasible, is to create a sort of “raw edit” view, that allows the submission to be opened up in a JSON editor and allows modifications to the data in a way that does not enforce logic of the form (skip logic and validation). This would probably involve creating a json-schema from the corresponding form version, and then building a view that uses a json-schema-based tool to edit and submit any changes.

None of these are road-mapped for our team in the next couple months, and regrettably this represents a very valid use case of the experimental redeployment feature that we didn’t prepare for ahead of time. Right now, we are working hard to ensure that exports of multi-versioned forms are meaningful and include all the data in all cases, so that we can finally combine “legacy” and the new formpack-based exports into one.

I’d be happy to talk with someone in more detail if they would like to work towards one of these solutions in a way that we can incorporate into the tool.

-Alex

···

On Monday, April 10, 2017 at 5:40:28 PM UTC+1, Donald Lobo wrote:

hey kobo folks:

any more news on this. We’d be happy to help debug / fix the issue if you’ll can guide us on this.

a response would be highly appreciated :slight_smile:

lobo

On Monday, March 27, 2017 at 12:14:57 AM UTC-7, Amar Kamthe wrote:

To reproduce this issue follow below steps,

  1. Create and deploy a form with any number of fields.
  2. Fill atleast one entry using kobocollect app or Enter data in browser links.
  3. Update the form say by adding new field and redeploy the same.
  4. Now try to edit the #2 entry. This will give you message “error trying to parse xml”.
    Regards,
    Amar

On Monday, March 27, 2017 at 12:36:46 PM UTC+5:30, Amar Kamthe wrote:

Kobo Team :

Any updates on this issue. As it still persist in the latest kobo-docker update.
We are not able to update the records.

Regards,
Amar

On Monday, February 6, 2017 at 6:30:39 PM UTC+5:30, Amar Kamthe wrote:

Hello Kobo Team,

I am using kobo-docker using local setup. I have created one survey form and collected data. Today I updated the survey form by adding couple of questions. After redeploying the survey, I am not able to edit the records that were previously collected. Below is the screenshot for the same.

Any support for this?

Regards,
Amar

1 Like

hey alex:

thanx for the response. Another potential option (for groups with not a lot of data) might be to “convert” all the current “legacy” data to match the “new” format data.

Any idea what this would involve and how does the data differ from two versions of the form?

lobo

···

On Wed, Apr 12, 2017 at 7:14 AM Alex Dorey alex....@kobotoolbox.org wrote:

Hi Amar and lobo,

Sorry for the delay in responding to this, and thanks lobo for bringing this back up because we agree that it is important to address. The issue here involves our decision last year to start to support multi-versioned forms (aka. redeployment). The issue of how to edit submissions to previous versions is a complicated one because of kobocat’s structure as an ODK/OpenRosa endpoint, and how enketo is paired with kobocat.

The most direct way to edit submissions to old versions of forms is to redeploy that particular version, which would make submissions to that version function normally. I understand this is not acceptable for most users. The most actionable solution that I see being built, however, would allow the user to revert the deployment back to a previous version of the form (from a list of versions). This would be a clunky solution.

Beyond that option, another path could be to create an endpoint in kobocat that simulates a deployment of an old version, directs Enketo to that endpoint, and opens the submission in that context. This could take a bit of work on the kobocat end, and involves a direction that we do not currently have in our sights. It’s possible, though, that I am overestimating the work this would take on the kobocat end. In our experience, kobocat modifications are very hard to estimate, which is why we are transitioning the functionality piece-by-piece over to the kobo-api (kpi) project.

And finally, a third solution that I believe is feasible, is to create a sort of “raw edit” view, that allows the submission to be opened up in a JSON editor and allows modifications to the data in a way that does not enforce logic of the form (skip logic and validation). This would probably involve creating a json-schema from the corresponding form version, and then building a view that uses a json-schema-based tool to edit and submit any changes.

None of these are road-mapped for our team in the next couple months, and regrettably this represents a very valid use case of the experimental redeployment feature that we didn’t prepare for ahead of time. Right now, we are working hard to ensure that exports of multi-versioned forms are meaningful and include all the data in all cases, so that we can finally combine “legacy” and the new formpack-based exports into one.

I’d be happy to talk with someone in more detail if they would like to work towards one of these solutions in a way that we can incorporate into the tool.

-Alex

On Monday, April 10, 2017 at 5:40:28 PM UTC+1, Donald Lobo wrote:

hey kobo folks:

any more news on this. We’d be happy to help debug / fix the issue if you’ll can guide us on this.

a response would be highly appreciated :slight_smile:

lobo

On Monday, March 27, 2017 at 12:14:57 AM UTC-7, Amar Kamthe wrote:

To reproduce this issue follow below steps,

  1. Create and deploy a form with any number of fields.
  2. Fill atleast one entry using kobocollect app or Enter data in browser links.
  3. Update the form say by adding new field and redeploy the same.
  4. Now try to edit the #2 entry. This will give you message “error trying to parse xml”.
    Regards,
    Amar

On Monday, March 27, 2017 at 12:36:46 PM UTC+5:30, Amar Kamthe wrote:

Kobo Team :

Any updates on this issue. As it still persist in the latest kobo-docker update.
We are not able to update the records.

Regards,
Amar

On Monday, February 6, 2017 at 6:30:39 PM UTC+5:30, Amar Kamthe wrote:

Hello Kobo Team,

I am using kobo-docker using local setup. I have created one survey form and collected data. Today I updated the survey form by adding couple of questions. After redeploying the survey, I am not able to edit the records that were previously collected. Below is the screenshot for the same.

Any support for this?

Regards,
Amar

–

You received this message because you are subscribed to a topic in the Google Groups “Kobo Users” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/kobo-users/uYlVF7FmOlc/unsubscribe.

To unsubscribe from this group and all its topics, send an email to kobo-users+...@googlegroups.com.

To post to this group, send email to kobo-...@googlegroups.com.

Visit this group at https://groups.google.com/group/kobo-users.

For more options, visit https://groups.google.com/d/optout.

Hi lobo,

This is something we’ve discussed. It would need to be built in a way that can handle maximally complex forms and complex changes to these forms. But it could definitely be interesting.

Is this something that you would like to work on?

···

On Wednesday, April 12, 2017 at 3:46:17 PM UTC+1, Donald Lobo wrote:

hey alex:

thanx for the response. Another potential option (for groups with not a lot of data) might be to “convert” all the current “legacy” data to match the “new” format data.

Any idea what this would involve and how does the data differ from two versions of the form?

lobo

On Wed, Apr 12, 2017 at 7:14 AM Alex Dorey wrote:

Hi Amar and lobo,

Sorry for the delay in responding to this, and thanks lobo for bringing this back up because we agree that it is important to address. The issue here involves our decision last year to start to support multi-versioned forms (aka. redeployment). The issue of how to edit submissions to previous versions is a complicated one because of kobocat’s structure as an ODK/OpenRosa endpoint, and how enketo is paired with kobocat.

The most direct way to edit submissions to old versions of forms is to redeploy that particular version, which would make submissions to that version function normally. I understand this is not acceptable for most users. The most actionable solution that I see being built, however, would allow the user to revert the deployment back to a previous version of the form (from a list of versions). This would be a clunky solution.

Beyond that option, another path could be to create an endpoint in kobocat that simulates a deployment of an old version, directs Enketo to that endpoint, and opens the submission in that context. This could take a bit of work on the kobocat end, and involves a direction that we do not currently have in our sights. It’s possible, though, that I am overestimating the work this would take on the kobocat end. In our experience, kobocat modifications are very hard to estimate, which is why we are transitioning the functionality piece-by-piece over to the kobo-api (kpi) project.

And finally, a third solution that I believe is feasible, is to create a sort of “raw edit” view, that allows the submission to be opened up in a JSON editor and allows modifications to the data in a way that does not enforce logic of the form (skip logic and validation). This would probably involve creating a json-schema from the corresponding form version, and then building a view that uses a json-schema-based tool to edit and submit any changes.

None of these are road-mapped for our team in the next couple months, and regrettably this represents a very valid use case of the experimental redeployment feature that we didn’t prepare for ahead of time. Right now, we are working hard to ensure that exports of multi-versioned forms are meaningful and include all the data in all cases, so that we can finally combine “legacy” and the new formpack-based exports into one.

I’d be happy to talk with someone in more detail if they would like to work towards one of these solutions in a way that we can incorporate into the tool.

-Alex

On Monday, April 10, 2017 at 5:40:28 PM UTC+1, Donald Lobo wrote:

hey kobo folks:

any more news on this. We’d be happy to help debug / fix the issue if you’ll can guide us on this.

a response would be highly appreciated :slight_smile:

lobo

On Monday, March 27, 2017 at 12:14:57 AM UTC-7, Amar Kamthe wrote:

To reproduce this issue follow below steps,

  1. Create and deploy a form with any number of fields.
  2. Fill atleast one entry using kobocollect app or Enter data in browser links.
  3. Update the form say by adding new field and redeploy the same.
  4. Now try to edit the #2 entry. This will give you message “error trying to parse xml”.
    Regards,
    Amar

On Monday, March 27, 2017 at 12:36:46 PM UTC+5:30, Amar Kamthe wrote:

Kobo Team :

Any updates on this issue. As it still persist in the latest kobo-docker update.
We are not able to update the records.

Regards,
Amar

On Monday, February 6, 2017 at 6:30:39 PM UTC+5:30, Amar Kamthe wrote:

Hello Kobo Team,

I am using kobo-docker using local setup. I have created one survey form and collected data. Today I updated the survey form by adding couple of questions. After redeploying the survey, I am not able to edit the records that were previously collected. Below is the screenshot for the same.

Any support for this?

Regards,
Amar

–

You received this message because you are subscribed to a topic in the Google Groups “Kobo Users” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/kobo-users/uYlVF7FmOlc/unsubscribe.

To unsubscribe from this group and all its topics, send an email to kobo-users+unsubscribe@googlegroups.com.

To post to this group, send email to kobo-...@googlegroups.com.

Visit this group at https://groups.google.com/group/kobo-users.

For more options, visit https://groups.google.com/d/optout.