I have tried to deploy a survey and the error message: ‘There has been a problem trying to replace ${} with the XPath to the survey element named ‘’. There is no survey element with this name’ appears.
I have no idea how to resolve this as the error message does not specify what the actual survey element is that is causing the problem. I would appreciate any assistance with this issue as the survey needs to be deployed soon.
Please can you also advise on how to resolve these issues in the Kobo webpage version of the survey. Once changes are made to the downloaded XLS form, I am not sure what happens next with the online version i.e. whether changes are automatic, whether I can re-upload the XLS form to update the online version or whether I need to start a new survey
There is a post from @stephanealoo, which in your case gives a valuable explanation about ending names with underscore ( _ )
I think they are created by the KoBo Form Builder automatically, but erasing the underscores at the end of your names, might help you. For example, can you try changing:
respondent_has_a_productive_activity_in_ to respondent_has_a_productive_activity_in
I’ve removed underscores for names for both the survey and choice tab and then re-uploaded the XLS form but unfortunately the error message is still appearing when I try to deploy the survey. I also checked for the variable terms you highlighted (data, model, start, end) and removed ‘start’ but unfortunately that also didn’t have an effect.
I submitted the XLS form to the ODK online validator and it highlighted several rows lacking a label e.g. [row : 19] Group has no label: {‘name’: ‘group_ud5ge80_header’, ‘type’: ‘begin_group’}
I’ve attached a screenshot of the XLS form where the syntax issue is highligthed
I tried deleting the rows with the syntax errors (lack of labels) but that didn’t seem to work when I re-uploaded the form. Would you recommend giving the rows arbitrary labels or is there something else I should do to resolve the syntax errors?
I’ve shortened the names for both. Now when I try to deploy, a different error message appears: ‘There has been a problem trying to replace ${What_best_describes_the_type_o} with the XPath to the survey element named ‘What_best_describes_the_type_o’. There is no survey element with this name.’
I’m not sure how to fix this or whether the original problem has been fixed
Welcome @TPS1879,
maybe @Kal_Lam can configure that you can upload your xlsx here. I would suggest with the initial version which created the ${} error.
(Pay attention, please, not to publish sensitive data with the xlsx here.)
Original enterprise survey.xlsx (43.5 KB)
Hi there, here is the original version of the XLS form. I’d appreciate any help you can give in identifying the problem!
Hello @TPS1879,
you can easily find the places by searching the survey sheet with ${} as search token. For ex. rows 488 to 497. As the error message indicated the variable names in the reference are missing.