Select to view content in your preferred language

Error: Parse XML Record

1644
7
01-25-2018 07:04 AM
FranciscoAndrade1
Regular Contributor

Parse XML Error

I am currently receiving the error above when opening the survey in Internet Explorer. Via Internet Explorer I have tried changing the document mode to the following and the survey does not work:

  • 7 Mode
  • 8 Mode
  • 9 Mode
  • 10 Mode
  • Edge Mode

This issue only seems to occur when parameters are added to the link.

This issue is not occurring in Firefox or Google Chrome.

This is a new survey that has been created after Survey123 v.2.6.4

I have attached the survey configuration as well. 

Can someone help?

The survey is currently open to the public. 

Link without parameters

https://survey123.arcgis.com/share/84fc80e226b64199bca193de36ebeb0c 

Link with parameters

https://survey123.arcgis.com/share/84fc80e226b64199bca193de36ebeb0c?field:city=Mecca&field:qmnum=000... 

0 Kudos
7 Replies
BrandonArmstrong
Esri Regular Contributor

Hi Francisco,

After looking at your XLSForm, it appears that you have placed a calculation in the relevant column of the fields that are not showing, or passing parameters, which is not applicable.

For all these fields, you have a calculation stating ${Contractors} = 'Maybe', however there is no choice value of 'Maybe' that applies to your field named 'Contractors'.

This may have something to do with the error.  Can you please review your XLSForm and attempt to address this, then try again?

Thank you,

Brandon

0 Kudos
FranciscoAndrade1
Regular Contributor

Hi Brandon,

The reason I have  attributes relevant to "${Contractors} = 'Maybe'" is because I have those attributes saved for when pushing parameters or once the survey is completed by the customer each survey will have a internal follow up.

I recreated the survey using web designer and I am still getting the same error. When creating the survey via web designer I left out the following attributes:

  • CB_Completed
  • CB_By
  • CB_Notes

Below is the survey link:

Link without parameters

https://survey123.arcgis.com/share/abe21b7ddf584b57b70e591d8dfb79da 

Link with parameters

https://survey123.arcgis.com/share/abe21b7ddf584b57b70e591d8dfb79da

https://survey123.arcgis.com/share/abe21b7ddf584b57b70e591d8dfb79da?field:city=Mecca&field:qmnum=000... 

0 Kudos
BrandonArmstrong
Esri Regular Contributor

Unfortunately, there is no way for the form to know where to store the value prior to satisfying the relevancy which you have assigned to it.

In order for the parameter to pass, you must add a value of 'Maybe' to your choices sheet.  

Another option that may work for you, would be to use the 'hidden' field type for those questions, and set them to the appropriate bind::esri:fieldType.  This way, the questions would never appear to the submitter, but you could pass parameters and/or edit the values after submission.

0 Kudos
FranciscoAndrade1
Regular Contributor

Brandon,

I have recreated the survey and I am still getting the same error message in Internet Explorer only. Changes as you stated have been made. The survey works when I am not sending parameters via the link but as soon as I add the parameters, it fails. 

No issue is occurring in Google Chrome or Firefox.

Attached is the XLS form for the survey. 

https://survey123.arcgis.com/share/3c203d6b995c45629a90e79c92da454c

https://survey123.arcgis.com/share/3c203d6b995c45629a90e79c92da454c?field:city=Mecca&field:qmnum=000... 

0 Kudos
by Anonymous User
Not applicable

Hi fandrade86,

As per our work on the support case, I have logged a defect for this behavior.

BUG-000111386: Internet Explorer generates "Error trying to parse XML record. Different root nodes" when opening a custom Survey123 URL to auto-populate fields.

Thanks,

Amol

0 Kudos
Nielsvan_Rijn2
Occasional Contributor

Same error here, unfortunately IE is the default browser of our company.

This used to work however.

0 Kudos
by Anonymous User
Not applicable

I apologize for the inconvenience that your company will be facing due to this defect. Yes, it did work previously and our dev team has set the current status of this defect as "In Product Plan".

You can keep track of the defect on our support website: BUG-000111386: Internet Explorer generates "Error trying to parse X.. 

Thanks!

0 Kudos