Select to view content in your preferred language

Cannot get necessary XForms file for the survey

2414
8
09-30-2021 04:02 PM
AyeletGreenberg
Frequent Contributor

I’m trying to share survey results with a user. The user can see the information under the Overview and the Data tabs but the Analyze tab returns this message “Cannot get necessary XForms file for the survey”.

All three tabs loaded fine for me on different browsers.  

Please advise,
Thanks

Tags (1)
0 Kudos
8 Replies
UriGilad_EsriAu
Esri Contributor

Hi @AyeletGreenberg,

Have a look at this post:

https://community.esri.com/t5/arcgis-survey123-questions/survey-123-problem/td-p/801585

Try to publish again and if that works check what's the difference. Also, as mentioned in the post above, moving the survey out of the folder in which it was published often causes errors. 

Hope this helps, 

Uri

If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
0 Kudos
AyeletGreenberg
Frequent Contributor

Hi Uri

I published the survey again, but it didn't solve the problem. The user can see the data, but the Analyze option still returns an error.
The survey was created from an existing feature service with a related table. I checked another survey that was created in the same way and the user encountered the same problem with analyzing the data. I then shared a survey created from a feature service w/o a related table, and the user could open the Analyze tab and see the data.
I noticed that data from related tables don't behave the same way as data from feature services on the Survey123 website.  For example, I can't include photos in reports from related tables.

0 Kudos
MarcMuehleisen
Emerging Contributor

We actually have the exact same issue inside a project.

Two surveys have been created where one holds the initial feature layer, the second one (where UI is optimized for mobile phones) populate the same layer via submission_url parameter in settings sheet.

Now i cannot open data + analysis tab in both surveys.

 

0 Kudos
DuncanC
Frequent Contributor

@MarcMuehleisen You have any luck figuring it out?  I just had it happen on a form. 

0 Kudos
WilderNiss1
Occasional Contributor

I am having the same issue with a survey that has related tables and calls a feature service for some of the questions. Curious what solutions come out of this.

0 Kudos
GISAdminGKB
Emerging Contributor

We had the same problem. Developing a (submission) survey, many times publishing and testing the form in survey app. But during development the createReport API start failing and we got the message as mentioned above. We did some testing. Finally we found the reason. In one field we are using the search appearance and when we use the % sign in the url+parameters xfom is broken for analyse and data and alos the createReport API.

So we had search appearance like this: 
autocomplete search("GKB_Project?url=https://services9.arcgis.com/CjT8oELYhF7fnj6q/arcgis/rest/services/service_e7e8bc459ba240c5a1153dcbc... DESC&where=Projectnummer LIKE 'WHGB%' AND UPPER(Omschrijving) LIKE '%ROLDEUR%'") w3

Using as above xform is broken, removing the % sign everything works fine. Tomorrow we will make a support ticket about this. Maybe is it's helping others to solve the message ' Cannot get necessary XForms file for the survey.

0 Kudos
GISAdminGKB
Emerging Contributor

Workaround

  • Save the excel file.
  • Goto survey files
  • Open de <form>.xml file
  • Replace the % sign with HMTL entity &#37; 
  • See example below, the same search appeance with the % replaced. When we publish this everything works fine.

<select1 appearance="autocomplete search(&quot;GKB_Project?url=https://services9.arcgis.com/CjT8oELYhF7fnj6q/arcgis/rest/services/service_e7e8bc459ba240c5a1153dcbc... DESC&amp;where=Projectnummer LIKE 'WHGB&#37;' AND UPPER(Omschrijving) LIKE '&#37;ROLDEUR&#37;'&quot;) w3" esri:style="&lt;body backgroundColor='#f8f8f7'&gt;" ref="/Deurinspecties/LocatieGegevens/ProjectCode">
<label>Projectcode</label>
<hint><output value=" /Deurinspecties/LocatieGegevens/ProjectOmschrijving "/></hint>
<item>
<label>Projectnummer</label>
<value>Projectnummer</value>
</item>
</select1>

0 Kudos
GISAdminGKB
Emerging Contributor

Workaround

  • Save the excel file.
  • THEN BEFORE PUBLISHING:
  • Goto survey files
  • Open de <form>.xml file
  • Replace the % sign with HMTL entity &#37; 
  • Then publish the survey !!
  • See example below, the same search appeance with the % replaced. When we publish this everything works fine.

<select1 appearance="autocomplete search(&quot;GKB_Project?url=https://services9.arcgis.com/CjT8oELYhF7fnj6q/arcgis/rest/services/service_e7e8bc459ba240c5a1153dcbc... DESC&amp;where=Projectnummer LIKE 'WHGB&#37;' AND UPPER(Omschrijving) LIKE '&#37;ROLDEUR&#37;'&quot;) w3" esri:style="&lt;body backgroundColor='#f8f8f7'&gt;" ref="/Deurinspecties/LocatieGegevens/ProjectCode">
<label>Projectcode</label>
<hint><output value=" /Deurinspecties/LocatieGegevens/ProjectOmschrijving "/></hint>
<item>
<label>Projectnummer</label>
<value>Projectnummer</value>
</item>
</select1>

0 Kudos