POST
|
I just tried publishing from ArcMap instead of Pro. The issue appears to have gone away and my survey does not hang up on submission of a record. I have to check the other surveys in my workflow that follow this one up now and see if they work.
... View more
03-12-2019
09:27 AM
|
2
|
0
|
1240
|
POST
|
Hi Phil, Thanks for the reply. The layer in question is a brand new hosted feature service. It is identical to another hosted feature service expect for the addition of two new fields. The older hosted feature service when accessed in Survey123 works no problems. These two new fields aren't part of the survey in question. This is the only change that I made and my "new" hosted feature service was published as brand new in ArcGIS Online. Nothing else has changed. In my survey if I change the item id to my new hosted feature service, Survey123 hangs on submission. If I change it back to my original layer, the record gets submitted. I tried publishing my new hosted feature service from a brand new map in Pro, from a brand new project in Pro and I recreated the hosted feature layers in a brand new geodatabase before publishing to AGO. The survey always hangs when I got to submit the record. If I switch it back to my original layer, it works. I even created a brand new survey based on my feature service in Connect. This survey was identical in logic and functionality. The only difference is the hosted feature service it uses. But it still hangs on the submission. The issue seems to be with my new layer but I can't tell what the issue is. I am using version 3.3.51 of Survey123 Connect and version 3.3.64 of Survey123 for windows and iOS. This happens on my desktop, IPad and IPhone. I reinstalled the previous version of Connect and Survey123 with the same results. Thanks for your help. Jim
... View more
03-12-2019
08:45 AM
|
0
|
2
|
1240
|
POST
|
Hi Philip, What's the bug you referenced below? I have a survey that contains related records but that are not being edited via the inbox or sent box. The related table might have records added during the survey depending on the conditions in the field. When I collect a brand new point and submit, the survey hangs on one of the related tables. No error message. The survey just keeps chugging away. Jim Philip Wilson wrote: Hi Aaron, Are you using repeat count on the repeat questions? Are you trying to edit existing records via the Inbox or Sent box? If so this could be related to a known bug currently identified. Does this issue happen on all devices and OS versions, or just some? Can you share a copy of the xlsx file so we can take a closer look? Thanks, Phil.
... View more
03-11-2019
11:22 AM
|
0
|
4
|
4062
|
POST
|
I have a AGOL hosted feature layer that has a parent feature class (Repair Locations) and a related child feature class (Paving Cut Details). There can be one - three paving cuts at each repair location and each paving cut can have a different job status. If there are three paving cuts at one repair location, there will be three points, each with a different job status. I only want the Survey123 inbox to display those repair locations that have paving cuts with a job status of 'received'. However, the job status is an attribute of the paving cut layer and not the repair location layer. Currently, the inspector sees all repair locations regardless of the status of the related paving cuts. I have a query set in the bind::esri:parameters column for the correct job status on the related child layer but the inspector has to select a repair location to see if there are any paving cuts with the job status of received. It would be much better for our inspectors if I could set an inbox query that would only show those repair locations that having paving cuts with a job status of received. I tried something like this: RepairLocations.Town='Hartford' AND PavingCutDetails.JobStatus=1 but get a Code 400 Cannot perform query. Invalid query parameters. when I refresh my inbox. Is this a limitation of standardized queries? Is what I want to do possible? Thanks.
... View more
12-06-2018
05:18 AM
|
0
|
1
|
388
|
POST
|
For what it's worth, I can run this script in ArcMap and it runs as expected.
... View more
10-03-2018
04:35 AM
|
0
|
0
|
143
|
POST
|
That's it? One lousy space? I am glad it was something simple. I should have noticed that based on the other if statements in my sheet. Thanks for the help!
... View more
07-25-2018
03:56 AM
|
2
|
0
|
1721
|
POST
|
Dedented lines 45 & 46 with the same results: Total Cleaning Recs: 983 row[0]16000 row[1]GIS6089793 Processing row 16000 for SAPLINKID GIS6089793 (0.0% percent complete) row[0]16001 row[1]GIS6093070 I put some print statements inside the for loop and the script appears to hang on the first select layer by attribute statement (line 41) when the loop begins its second iteration. But I can't see anything that is wrong that would cause the script to not run beyond this point without throwing an error message of some kind.
... View more
07-24-2018
05:36 AM
|
0
|
4
|
877
|
POST
|
Hi Dan, Thanks for your help! Here is the result: Total Cleaning Recs: 826 row[0]16000 row[1]GIS6089793 Processing row 16000 for SAPLINKID GIS6089793 (0.0% percent complete) row[0]16001 row[1]GIS6093070 My final print statement never runs either.
... View more
07-23-2018
05:49 AM
|
0
|
6
|
877
|
POST
|
Hi John, Attached are the two surveys where I am experiencing issues. The Paving Cuts-First Inspection survey opens from the Inbox. The Repair Location details is a read only group that provides our inspector with information about the repair and is the parent record to Paving Cut Details. The Contract question is set in the office prior to the inspector performing this inspection so when he opens the survey, it already has a value. My intent is for the Contract question to automatically populate answers for the Vehicle Detector, Pavement Markings, Reuse Curbing and Reuse Pavers questions. I also will have these same survey questions be hidden based on the selected contract type. I have kept them visible thus far to ensure the answers I want are calculated correctly. The table below shows how I want the answers to be determined based on the selected contract type. Asphalt Base Road Concrete Base Road Sidewalk Grass Vehicle Detectors No Default Answer No Default Answer Not Applicable (Hidden) Not Applicable (Hidden) Pavement Markings No Default Answer No Default Answer Not Applicable (Hidden) Not Applicable (Hidden) Reuse Pavers Not Applicable (Hidden) Not Applicable (Hidden) No Default Answer Not Applicable (Hidden) Reuse Curbing No Default Answer No Default Answer No Default Answer Not Applicable (Hidden) I am trying to ensure that there are answer to these survey questions when they are not visible to the inspector and force them to make answers when they are visible. There are several questions following these that will have similar logic applied but I haven't added that as I haven't gotten it working for these fields yet. At the bottom of the survey is a third related table that will store bid items related to the work done for the parent Paving Cut record. The calculations I have here work as expected. Also attached is a survey called From 6. This is a simple Survey that just has the Contract type and four questions and is not tied to my feature service in AGOL nor does it have any related records/repeats to deal with. I just wanted to see if I could get the calculations to work based on a selection I make and received the same results as above. Thanks for your help.
... View more
07-23-2018
05:22 AM
|
0
|
2
|
1721
|
POST
|
I have two point feature layers. One represents cleaning and the other catch basins. The cleaning layer exists as a hosted feature service in ArcGIS Online. In ArcGIS Pro, I am trying to run the below code to snap cleaning points to catch basin points so they are coincident. It only runs through the main loop one time. It used to run fine but now I can't figure out why. I am not a programmer so I am hoping someone that is can help me figure out why my code won't loop more than once. Any ideas? Thanks! arcpy.env.overwriteOutput = True
arcpy.env.workspace = "E:\MDC\Catch Basin Cleaning\map_docs\Catch Basin Cleaning 2018\Inspection 2018 Review.gdb"
cleaning_fc = 'Cleaning and Sediment Monitoring'
catchBasin_fc = 'ssCatchbasin'
objId_field = 'OBJECTID'
name_field = 'SAPLINKID_FK'
name_field2 = 'SAPLINKID'
#Create a where clause based on the cleaning date
aCleanDateWhereClause = "CleanDate >= timestamp '2018-06-26 01:10:00'"
aTownWhereClause = "TOWNCODE = '01'"
#Create layer files
cleaning_layer = arcpy.MakeFeatureLayer_management(cleaning_fc, "cleaning_lyr", aCleanDateWhereClause)
catchbasin_layer = arcpy.MakeFeatureLayer_management(catchBasin_fc, "catchbasin_lyr", aTownWhereClause)
#Clear any selections
arcpy.management.SelectLayerByAttribute(cleaning_layer , "CLEAR_SELECTION")
arcpy.management.SelectLayerByAttribute(catchbasin_layer , "CLEAR_SELECTION")
#Create a search cursor using an SQL expression to count
#total number of cleaning records to be snapped
totalRec = 0
with arcpy.da.SearchCursor(cleaning_layer, [objId_field, name_field]) as cursor:
for row in cursor:
totalRec += 1
print ("Total Cleaning Recs: " + str(totalRec)) #I get 734 records here
#Create a search cursor using an SQL expression to loop through only
#those points that have been created since a specific date. Snap those
#cleaning points to the ssCatchbasin so they are coincident
curRec = 0 #counter for keep tracking of where we are in the loop
#the same loop below only runs one time
with arcpy.da.SearchCursor(cleaning_layer, [objId_field, name_field]) as cursor:
for row in cursor:
curRec += 1
sapLinkId = row[1]
if "GIS" in sapLinkId:
layer1 = arcpy.management.SelectLayerByAttribute(cleaning_layer , "NEW_SELECTION", "SAPLINKID_FK=" +"'"+row[1]+"'")
layer2 = arcpy.management.SelectLayerByAttribute(catchbasin_layer , "NEW_SELECTION", "SAPLINKID=" +"'"+row[1]+"'")
arcpy.Snap_edit(layer1, [[layer2, "VERTEX", "120000 feet"]])
percentDone = round((curRec/totalRec)*100,0)
print("Processing row " + str(row[0]) + " for SAPLINKID " + row[1] + " ("+ str(percentDone) + "% percent complete)")
print ("Done!")
... View more
07-20-2018
04:33 AM
|
0
|
10
|
1417
|
POST
|
Thanks for the reply and verifying the calculation trigger bug. Is this just limited to drafts and inbox surveys? I created a simple form with just a few fields to replicate the behavior from my mark out form. When I click a contract type I want the select_one questions to become -1, 0 or 1. When I select a contract type, nothing happens to any of my questions. I changed one question type to just a text question to see if I could just have a text answer populated in the question and see this string in the question when my form opens: SyntaxError: Expected token `;' in expression: if ( /Form_6/Contract =1,"Success", "Fail") Is this related to the calculation trigger bug, something different or am I doing something wrong? Thanks for the help.
... View more
07-19-2018
03:47 AM
|
0
|
4
|
1721
|
POST
|
I am having trouble getting calculations to work in my form. The calculation occurs in a related record that is opened via the inbox. The source for my form is a hosted feature layer in ArcGIS Online. The fields in question are all part of the same record. The Contract field (part of the related record) in my survey has a value when it is opened in Survey123. The values come from a choice list: 1: Asphalt Base road, 2: Concrete Base Road, 3: Sidewalk, 4: Grass. There are four select_one fields that I want to be populated with an answer based on the this contract type. These fields can have an answer of -1: Not Applicable, 0: No, 1: Yes. The contract type will determine how each of these will have their answer calculated. Eventually, I am going to hide the fields that don't fit with a certain contract type. For example, a grass cut does not have vehicle detectors and so would have an answer of -1 (Not Applicable) and be hidden for this contract type. When a field needs an answer, I want each select_one question to not have an automatically calculated answer because I need the user to make a choice. If they don't choose one, it will be caught when then try to submit the form because these fields are required. As I understand it, the calculation should occur every time an answer is changed on my form. That doesn't seem to be happening. When the survey is opened and a field changed, the calculations don't appear to run. If I click the refresh arrows next to the select_one fields nothing appears to happen. I attached my form. Can anyone find anything wrong with my formulas? Am I misusing the calculation column? What am I missing? Thanks.
... View more
07-18-2018
11:08 AM
|
0
|
8
|
1941
|
POST
|
Thanks for the links Mikie! Exactly what I needed. I don't know how I missed those in my searching.
... View more
07-13-2018
08:46 AM
|
2
|
0
|
527
|
POST
|
I have been taking advantage of the new nested repeat functionality and love it! It will finally allow me to have a more normalized data structure for one of my workflows...or so I thought. I have three tables (Repair Locations, Cut Details and Bid Items) with a one-to-many relationship between each of them. The workflow involves: Our repair crews going out and capturing the location of a repair as a point in a hosted feature layer. A user in the office then adds one or more cuts at the repair location. An inspector then returns to the site and does a mark out and records the date of mark out, the job status out and dimensions of the cut(s) in the Cut Details table. The inspector returns to the site after the cut has been repaired by a contractor and records the materials used in the bid items table and updates the job status in the Cut Details table. The inspector returns again at a later date for a final inspection to ensure the cut is still in good condition and certifies the cut as complete, again in the Cut Details table. This is somewhat simplified and more data is collected at each step than I detailed. But the main point is that there are multiple visits to a location during the workflow. I have created three surveys to handle each separate visit to the site by our inspectors (attached below). At each visit, they need to be able to edit existing data in related tables that was edited in a previous step of our workflow. From my testing so far, it doesn't appear that Inbox supports the editing of existing related features. Is this correct? I hope I am just missing something because Survey123 provides lots of functionality that is of great value to our workflow in terms of making fields required, pick lists for users, hiding certain fields, etc. that prevent a lot of issues we have encountered with poor data entry doing this workflow via AGOL web maps and a single feature class. If editing existing relates is not available, is this something that is being considered for a future release? Does anyone have suggestions for a workaround? Thanks!
... View more
07-13-2018
06:09 AM
|
0
|
2
|
688
|
Title | Kudos | Posted |
---|---|---|
1 | 08-28-2023 12:24 PM | |
3 | 05-05-2023 10:47 AM | |
1 | 07-25-2022 12:24 PM | |
2 | 09-13-2022 11:38 AM | |
1 | 07-07-2022 11:58 AM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|