Error when editing data in data table: "There was an error loading Enketo"

Description

When I try and edit any record in the data table, I get the error “there was an error loading Enketo”

Steps to Reproduce

  1. edit form on data table

Expected behavior

form opens for editing

Actual behavior

“There was an error loading Enketo”

Additional details

  • no changes made to the form nor redeployed
  • using non-humanitarian server
  • other deployed forms do not have the issue
  • able to export and download the data
  • able to view the records
  • tried:
    • clearing the cache
    • using different user accounts
    • using different computer

Hi, I have the same issue. I also cannot upload or redeploy my XLS form. Is there currently a bug in Kobo or is there a recent update that leads to Kobo not accepting certain formats?

@Jean_AFRE
Hi, is this loading error happening only with this specific form, or across multiple forms?
Also, are you collecting any media files (images, audio, video) in this form?

Hi! Thanks for your answer. In my case, it occurs for multiple forms, I’m not collecting media files, only showing some files. Additionally, I also receive an error message when uploading an XLS. There aren’t any changes made to the previous XLS since the deployment

@lanaliem
Hi, if possible, could you share a screenshot of the error you’re seeing so the community can better understand the issue?

There haven’t been any recent changes to file format.

image when editing an existing form

imagewhen uploading an XLS form

when I try to redeploy the current form

Hi @jorcabrera

Clicking to edit a record on a data table produces the error shown:

We’re not experiencing the issue on other deployed forms.

The form is collecting media files.

No changes were made to the form and it was working yesterday.

The issue (at least on form deploy) appears to be tied to duplicate names within the Kobo form XLSX definition; previously they were allowed (when they were nested in different groups) but now it is seen as a problem.

@Jean_AFRE @lanaliem
As mentioned by @lschilperoord_blonk This issue is caused by a validation check for duplicate names. Could you please download your XLSForm, resolve the duplicated name values, and redeploy?

You can use the Online Validator

NOTE: for @Jean_AFRE XLSForm, I found a duplicate name between repeat groups.


Also I have found some choices with invalid labels

Thanks very much for the quick response. I’ll check the xls for the issues you’ve pointed out.

Any idea though why this problem has surfaced now? We’d already captured 80 responses with no problems previously.

@lanaliem
Were you able to resolve your issue with the solution described here?

I encountered the same issue. To resolve it, I had to edit the forms and replace the spaces in the field names with underscores. While this allowed me to view and edit the forms again, some data is now missing from the reports.

Is there any way to avoid this data loss? I am asking because these forms contain thousands of records, and re-entering the information manually is not feasible for me.

I look forward to your reply

I’ve had a look and I see the issues you referred to, thanks. I’ll update here once I’ve I’ve redeployed - I’m a bit nervous about editing and redeploying an already deployed form.

I had the excact problem - not able to edit records even though previously everything worked well. I tried recommended above step - checking excel code for duplicates. It turned out we had a few. I redeployed form without name duplicates and everything works correctly now! I am able to edit records. Fortunately, the impacted questions weren’t filled in massively. Otherwise - all answers to impacted questions would disappear (be careful!!!).

I suppose it must have been some problem when Kobo at all allowed to deploy form with name duplicates. Previously it would have said, that it can’t be deployed because of errors. So now we are facing consequences…

@Jean_AFRE @Vira
Good to hear the issue is sorted. For the new export, I recommend enabling “Include data from all versions” so you capture every field, not just the latest structure.

You can find more details in this documentation article:
Synchronous Exports – KoboToolbox Support

Hello, I’m experiencing the same issue. I’m unable to edit some records, even though everything was working well previously.

I have the same forms for different regions, but some of them can be edited while others cannot. I also need to view the polygon shape and the total area of each polygon.

Could you please advise me on what I should do to fix this issue?

@nadhifa_maudika

Did you check your form using the Online validator ? Also you sholud be able to solve your issue by following this post

To get the area of a polygon you can use the area(${geoshape}) function as described here: