I have a Survey created in 123Connect that I have an email link. I am now getting a message that says: b'ODK Validate Errors:\n>>Something broke the parser. See above for a hint.\norg.javarosa.xpath.XPathUnsupportedException: XPath evaluation: unsupported construct[filter expression]\n\nResult: Invalid"
My calculation is as follows:
"Hello," + "\n" + "This is a request to determine the availability for deployment of the following apparatus:" + "\n"+ "\n" + "TYPE: " + ${Type_Group} + "\n" + "COMMON NAME: " + ${Common_Name } + "\n" + "YEAR: " + ${Apparatus_Year} + "\n" + "MAKE: " + ${Make} + "\n" + "Please respond ASAP, using REPLY ALL to advise if you are able to provide apparatus support." + "\n" + "Thank you for your consideration."
I am assuming the error is in this text due to the \n in the error message.
Can anyone identify where I have made this error?
I have used \n ok in a calculation with a field of type note.
"Bottom of the reach (1)\nF-transect (1)\nTop of the reach (1)\nOverview (1)\nMonument (3)\nCritical concepts (4:2 annotated and 2 copies unannotated)\nDepositional bank (1 if depositional banks are present)\nErosional bank (1)\nBank erosion feature (1)\nOther (not required)\nFlood Prone Width (Taken on the flood prone width form NOT on this form)"
I have also done join("\n", ${PhotoType})
My guess is the issue is using a \n inside a URL. Totally different deal. I would test that. This link may help https://stackoverflow.com/questions/3871729/transmitting-newline-character-n
Another idea is maybe you are over the 255 char limit on that field.
hope that helps
You have a space in the field Respiratory_Mask
Notice the green box is telling you its a problem.
Sorry missed that the first time. Not sure that is it though.
The parsing error is in the calculation on line 56. The one one line 55 is fine.
Looks like a comma was out of place:
Change body=,'${Email to body=',${Email
Not related to your error, but you have a few syntax issues (High-Moderate-Low is the level of importance, IMO):
I do not get this one
(High) You have capitals in almost all of you name fields. As stated above, these should all be lower case (lower case, can contain but not start with a number, no special characters other than underscore
There is no reason you cannot use caps that I know of. I have used it thousands of times.
Perhaps there is a setting for this, but this is the default state/result if capitals are used:
When a feature service is created in ArcPro with capitals and then used in S123, it seems to skip this check. Otherwise, this is my reasoning.
Edit. I guess marking it as "high" is misleading in this case. For this particular case, the form is obviously working with the capitals in names, so it's not critical. I tend to always assume that someone else will have a similar problem in the future and will find random threads via Google, so I try to address things that may cause confusion. Sometimes I'm successful! Sometimes not.
I dumped your text above into a test, and everything worked.
I replaced all of your tags with "FFFFFF" because I obviously didn't have those fields.
The /n is contained within quotes. I doubt that would be causing an error for you during parsing here.
I did notice that you have extra spaces in some fields. E.g., ${Common_Name }
Also, you should avoid capitals for names in S123. E.g., change Common_Name to common_name
Thank you for trying. I still can't get mine to resolve.
Good catch on the space.
But why would you say this?
"Also, you should avoid capitals for names in S123. E.g., change Common_Name to common_name"
I always use CamelCase for years with no issues. Curious here.