BLOG
|
This is great, thanks for putting this together! I'm having an issue with the excel template. If I download the template and don't save over the original file, I can successfully use the conversion tool. Whenever I save over the original file or save as a new file and try the conversion I receive an error "UnboundLocalError: local variable 'row' referenced before assignment". Any help would be appreciated @Jim-Moore !
... View more
10-11-2022
02:31 PM
|
0
|
0
|
2755
|
POST
|
Hello Everyone, Have a survey form built from Survey123 Connect and published to our Enterprise portal (version 10.8). We are receiving this error: Error: An error occurred when checking the report template. Failed to parse ${other_notes | appearance:"multiline"} since appearance is not supported for the current field. In Survey123 connect, this field does have a multiline appearance and functions correctly within the survey: text other_notes Other Notes w4 multiline predictivetext This is the screenshot from the syntax helper within the Survey123 website (notice no multiline appearance available): Here is a field from the same feature service, within the same group that works both in the survey form and in the feature report: text chilledwater_notes Chilled Water Notes w4 multiline predictivetext The only difference between these two fields are the names, they both have the exact same appearance and character limit. If anyone has any tips as to what could be causing this I'd very much appreciate the help!
... View more
06-13-2022
02:18 PM
|
0
|
0
|
1013
|
POST
|
Hello, I am interested in this reservation example as well. Does anyone have the information for it?
... View more
02-14-2022
12:57 PM
|
0
|
0
|
966
|
POST
|
@ZacharySutherby , can you check one more thing for me? We had some time to do a deep dive into this and started to build these maps in AGOL from scratch and tested the arcade function each time with an iOS device. The problem seems to occur when we have a copy of the hosted feature service in the same map. Example, our hosted feature service (HF1a) has a filter to only show certain locations on the map. We then create a copy of that hosted feature (HF1b) service in the map to show other locations with a transparency or similar. Once we add HF1b to the map, the centering function from collector to survey123 for iOS stops working on HF1a.
... View more
02-18-2021
06:36 AM
|
0
|
0
|
847
|
POST
|
@ZacharySutherby , thanks for the reply and taking time to test the problem we are having. I went and added the url scheme as an item in the popup and it did come through with the correct information. It also shows correctly in the arcade test and in the attribute table. I also went ahead and tried the encoded url, but no luck on the iPad and iPhone still, but once again works on android devices. I was testing on a iPad with 13.6, but while writing this upgraded to 14.2 with similar results. I may not have mentioned this in the initial question, but all the other data I am passing through with the URL scheme works including the call back to collector, but not the center function.
... View more
11-18-2020
03:16 PM
|
0
|
1
|
1084
|
POST
|
Hello Everyone, With some help from many in the community (especially Xander Baker), we have put together a custom arcade expression to pass through values to Survey123 from Collector. The below example set works like a charm on Android/Windows devices, but on iOS devices the center function does not pass through and all of the points end up on null island. function MetersToLatLon(x, y) {
// Converts XY point from Spherical Mercator EPSG:3857(Web Mercator Auxiliary Sphere) to lat/lon in WGS84 Datum (EPSG:4326).
// Source: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
var originShift = 2.0 * PI * 6378137.0 / 2.0;
var lon = (x / originShift) * 180.0;
var lat = (y / originShift) * 180.0;
lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0);
return [lat, lon];
}
function CreateURLSurvey(lat, lon) {
var url = "arcgis-survey123://?itemID=<surveyid>";
url += "&field:name1=" + $feature["name1"] + "&field:name2=" + $feature["name2"];
url += "&field:name_new=" + $feature["name_new"] + "&field:rel_globalID=";
url += $feature["GlobalID"] + "&callback=https://collector.arcgis.app";
url += "¢er=" + lat + "," + lon;
Console(url);
return url;
}
var latlon = MetersToLatLon(Geometry($feature).X, Geometry($feature).Y);
var url = CreateURLSurvey(latlon[0], latlon[1]);
return url; Has anyone experienced this problem? We are running Collector 20.2.4 and Survey123 3.11.164 on the iPad and Collector 20.2.2 and Survey123 3.11.164 on the android/windows devices. The center function does work on iOS when it is not an arcade expression.
... View more
11-17-2020
07:31 PM
|
0
|
3
|
1117
|
POST
|
Thanks for the reply Doug, this was a good solution as well.
... View more
10-20-2020
05:59 PM
|
0
|
0
|
2484
|
POST
|
This worked really well! Thank you Xander for the response and appreciate it!
... View more
10-20-2020
05:58 PM
|
0
|
0
|
2484
|
POST
|
Hello Everyone, We use URL schemes frequently to pass values through from Collector to Survey123. We were just creating a basic URL scheme and adding to the collector popup as a link like the 1st example below: arcgis-survey123://?itemID=<surveyid>&field:name1={name1}&field:name2={name2}&field:name_new={name_new}&field:rel_globalID={GlobalID}¢er={XY} The above works well, but we ran into a problem when passing the center value over to the survey when we are creating XYs on the fly with an Arcade expression. We switched the above flow to an Arcade based URL scheme in the 2nd example below and this works really well for our centering on the fly: function MetersToLatLon(x, y) { // Converts XY point from Spherical Mercator EPSG:3857(Web Mercator Auxiliary Sphere) to lat/lon in WGS84 Datum (EPSG:4326). // Source: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ var originShift = 2.0 * PI * 6378137.0 / 2.0; var lon = (x / originShift) * 180.0; var lat = (y / originShift) * 180.0; lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0); return [lat, lon]; } function CreateURLSurvey(lat, lon) { var url_scheme = "arcgis-survey123://?itemID=<surveyid>"; var url = url_scheme + "&field:=name1={name1}" + "&field:name2={name2}" + "&field:name_new={name_new}" + "&field:rel_globalID={GlobalID}" + "&callback=https://collector.arcgis.app"; var url = url + "¢er=" + lat + "," + lon; Console(url); return url; } var latlon = MetersToLatLon(Geometry($feature).X, Geometry($feature).Y); var url = CreateURLSurvey(latlon[0], latlon[1]); return url; Today, I added a new field in our hosted feature service (name_new) that passes the values to the survey form. I would like to pass that value using the Arcade expression above, but it will not apply the value to the form. It only shows the field with curly brackets {name_new} in the form. To add to the confusion, the basic URL scheme from my 1st example does work and brings over the correct value instead of the field name {name_new}. I would like to continue using the arcade formula in the 2nd example because it can be applied quickly to our numerous projects. Has anyone run into this before? Thanks!
... View more
10-20-2020
07:42 AM
|
0
|
4
|
2518
|
POST
|
Hello April, sorry for the delay in response. For this workflow we are using AGOL. We have since spoken with ESRI and they confirmed that it was an issue with the update. The Arcade expression was not being applied correctly. We had an option to roll back or find a new workflow and we chose to change our workflow. Will try it again when 3.10 comes out.
... View more
07-23-2020
01:02 PM
|
0
|
0
|
895
|
POST
|
Hello Everyone, Our devices recently updated to Survey123 version 3.9.148. We are using a custom url scheme to pass data from collector to a few Survey123 forms. The other fields we are passing through populate correctly, but the "center" function is no longer working. We have two arcade expressions built into our collector map, one to calculate the Lat/Long and the second to merge those together. Our url for the scheme is this: center={expression/expr1}. Just to be sure, I created a text field in my survey and did a field pass through of the {expression/expr1} and it populated as expected. This was working in previous versions, and we still have an old version on one of our devices (3.6.153) that I just tested this morning to make sure and it functioned as excepted, centering on the location. Any help would be appreciated!
... View more
04-14-2020
07:23 AM
|
0
|
3
|
941
|
POST
|
We played around with this a little more. We shared the feature service URL from our enterprise site with one of our AGOL sites. We then published the Survey in this AGOL environment and used Power Automate to connect to the survey. This worked and we were able to create a webhook with email notifications. The interesting part is the same workflow failed in Integromat with the same URL error.
... View more
03-09-2020
08:20 AM
|
0
|
1
|
2069
|
POST
|
Thanks for the response James. Watch survey fails at operation 1. I am able to access our enterprise over public internet. The only time I get this error is when I am using related tables.
... View more
02-21-2020
07:29 AM
|
0
|
2
|
2069
|
Title | Kudos | Posted |
---|---|---|
5 | 01-01-2020 07:27 PM | |
1 | 11-08-2019 09:52 PM |
Online Status |
Offline
|
Date Last Visited |
Thursday
|