POST
|
Hi, I have a model that updates my symbology on a daily basis to make it easier for techs on the field find their sampling sites. Currently, I am running the model manually but I would like to schedule it to run while we are away from the office at night. I found this page covers most of the process but the example provided seems to reference input and out put folders stored locally on a PC. It has the following code: import arcpy arcpy.ImportToolbox(r"C:\path\myToolbox.tbx", "tbxAlias") arcpy.myModel_tbxAlias(r"c:\pathToInput\inputFolder", r"C:\pathToGdb\output.gdb") I'm confused about the input folder and out put folder arguments. I built the model in ArcGIS Pro but the feature services are in my office's ArcGIS Online portal. Do I need to reference the project folder where the model is saved or do I need to somehow reference the ArcGIS Online feature services that the model will be updating? If the latter, how do I reference ArcGIS Online feature services. Do I use the REST API? Thank you for any help you can offer. I have learned so much on this forum and though I have no formal GIS training I have been able to solve a lot of problems with your help. Unfortunately, I'm not very familiar with Python yet.
... View more
06-27-2019
10:56 AM
|
0
|
0
|
426
|
POST
|
Thanks Joshua. Do you have any idea when this bug will be fixed? Due to Collector's lack of Conditional Expressions and Survey123's limited inbox features, we really rely on integrating the two.
... View more
04-24-2019
01:13 PM
|
1
|
3
|
1655
|
POST
|
I recently upgraded my iOS devices to the new version of Collector. Now, when I go to add a new record in any of my related tables I get an error that says, "No collectable layers are visible." I can see the related table name and I can click on it, but when I click "Add" the error pops up. I do not get this error in Collector Classic. Are there any additional settings in the new version that I need to change? I'm not sure if it is relevant, but the layer was originally created using Survey123 Connect, and the related tables were created as repeats. For now, my crews can get by with Collector Classic, but I'd like to get this figured out so I can take advantage of the exciting new features that the new version will provide. Thank you for your help.
... View more
02-19-2019
08:16 AM
|
4
|
24
|
4358
|
POST
|
Thanks for the help! I'll try this first thing tomorrow when I get back to the office. The general consensus seems to be that it was the date that was throwing the calculation off. If I understand correctly, using datetime.datetime.now() to refer to the current date works better because it calls the current date in a date format, whereas I used time.strftime("%d/%m/%Y") which has no date value. Additionally, your code converts the difference in dates into the number of days, so then I can compare it to the integer. I'm excited to try this. Thank you to everybody for your time. I'll let you know how it goes.
... View more
08-06-2018
01:32 PM
|
0
|
0
|
3344
|
POST
|
Thanks for your input. I'm in the field now but I will re-evaluate how I'm looking at the dates tomorrow.
... View more
08-06-2018
01:11 PM
|
0
|
0
|
3344
|
POST
|
Sure. Thank you for your feedback. I'm in the field today but I can provide a few rows tomorrow morning when I'm back in the office.
... View more
08-06-2018
01:10 PM
|
0
|
0
|
3344
|
POST
|
Hi everybody, I have a field called 'Status' that I reclassify every evening so I can update our symbology on one of my web maps. I wrote a function in Arcade that works, but in the interest of automation I am trying to convert my scripts to Python so I can use them in model builder. There are 9 fields that contribute to the calculation of the field status. They are: Date_Found MIN_Hatchling_Emergence_Date Data_Type Washout Removed Need_to_Check Assigned_HS SOH_yes_no Treatment_Code! I am trying to use the Calculate Field Tool. When I click verify it says the expression is valid. The code will run but it returns <null> in the status filed for every feature. I'm not too familiar with Python. Does anybody have any suggestions? I found a few examples online, but they all reclasses based on one input feature. I enter this in the expression box: reclass(!Date_Found!,!MIN_Hatchling_Emergence_Date!,!Data_Type!,!Washout!,!Removed!,!Need_to_Check!,!Assigned_HS!,!SOH_yes_no!,!Treatment_Code!) And this in the Code Block Box: def reclass(Date_Found,Date_SOH,Nest_or_Crawl,Washout,Removed,Check,Assigned_HS,SOH,TTT): if Nest_or_Crawl == "Crawl": if (time.strftime("%d/%m/%Y"))-Date_Found>=7: return "Old Crawl" else: return "Recent Crawl" elif Washout=="Y": return "Washed Out" elif Removed=="Y": return "Removed" elif Check =="Y": return "Check" elif (Assigned_HS=="N" and (time.strftime("%d/%m/%Y"))-Date_Found>=70): return "Ready for Removal" elif (Assigned_HS=="N" and SOH=="Y" and (time.strftime("%d/%m/%Y"))-Date_SOH>=3): return "Ready for Removal" elif Assigned_HS=="Y" and [(time.strftime("%d/%m/%Y"))-Date_Found>=70 or (SOH=="Y" and (time.strftime("%d/%m/%Y"))-Date_SOH>=3)]: return "Ready for HS" elif Date_Found>=45 or TTT=="9": return "Look for SOH" else: return "Incubating" Thank you for your time.
... View more
08-02-2018
10:51 AM
|
0
|
6
|
4002
|
POST
|
Hi Ismael, I realize it has been a while since you posted, but I wanted to let you know that I was able to implement a pretty good solution by integrating multiple surveys on Survey123 (initial documentation, depredation events, disturbance events, signs of hatching, and post hatch evaluations), Collector, and ArcGIS pro. Without getting too detailed, other users should be aware that this setup allows one to manage fairly complex workflows in which the timing of scheduled return visits are dependent on multiple factors while still allowing them to document non-scheduled events that can occur at anytime. Using the data collected in the Surveys the symbology can be updated daily to guide field crews to features that need to be checked (this was a huge time saver for us because there were seven possible nest statuses occurring simultaneously and each one had to be checked at different intervals). I hope to write more detailed explanation soon, but right now we are still in the middle of our field season, so I have not been able to get it it. Overall, configuring an integration such as this was not too difficult. I started this project with some coding experience but very little GIS experience. Some things seemed a little more difficult than they ought have been, but the ESRI community guided me through. We are currently using our system in the field and the only work I have left to dois to automate some of the tasks that I currently do in ArcGIS Pro. Thanks for your recommendation.
... View more
08-02-2018
09:52 AM
|
1
|
1
|
1624
|
POST
|
It looks like the date is being exported in EPOCH time. See this link for an explanation of different date/time formats. I'm not sure how dates are handled when they are sent from Survey123 to other web apps but here is what I would try. Create a calculated field in your survey (it should be hidden by default). In the calculate column try: format-date(${[name of your date field]},'%m/%d/%Y') This should create a new field with the date expressed as a string in the format MM/DD/YYYY. You should be able to reference this in your email webhook. Note - you can customize the format however you need. The different options are listed on the link.
... View more
07-19-2018
11:19 AM
|
1
|
1
|
1926
|
POST
|
I would like to pass the parent global ID from Collector to Survey123 so it can populate an already existing related table that was created by a repeat in a different survey. I understand how to pass values to Survey123 using the Custom URL scheme, however, in this specific case I don't know how to refer to the parent global ID field in the related table. I can see it in the related table that Survey123 is working with, but I don't see where Survey123 stores this information. For example, if I wanted the field in the survey called field_x to be populated with field_y from Collector I would add the following code onto the end of my URL: &field:field_x={field_y} However, as far as I can tell, ParentGlobalID is added to the table but not stored in the survey. Thus, the following code does not work: &field:ParentGlobalID={GlobalID} I realize I could just edit the table from Collector, but the field users asked that I do everything possible to integrate it with Survey123 so they can utilize the smart forms available in Survey123.
... View more
07-17-2018
09:32 AM
|
0
|
2
|
2579
|
POST
|
Yes, it’s a pretty complicated layer. It works fine in Survey123 offline. I’m not sure what caused it. Anyway, I was able to circumvent the problem by removing some of the related tables. There are a few that need to be updated frequently, but some are only populated when we initially fill out the survey and are rarely edited. I removed all but the most essential tables and it works fine. On the rare occasion that I need to update some of the other tables I will just do it by opening Survey123 and using the inbox function. The other more frequently edited tables still work on the Android OS. So, I wouldn’t call the problem solved, but I was able to avoid it. Thank you for your feedback.
... View more
07-17-2018
07:22 AM
|
1
|
0
|
590
|
POST
|
Hi Carmel, Thank you for the prompt reply. I double checked that all layers had ‘Enable Sync’ checked. I can open, view, edit data, and sync the map on the iOS device. I don’t know if this is relevant, but there are also 11 related tables (created in Survey123 as repeats) in the problematic layer. My next diagnostic step is to remove them one at a time to see if any of them are causing the problem. -Chris
... View more
07-16-2018
12:03 PM
|
0
|
2
|
590
|
POST
|
I made a webmap with the intent that it could be downloaded to our devices and used offline. The map works on every iOS device I have tested it with, but not with Android devices. The map will download but when I try to open it I receive an error that says "Unfortunately, Collector has stopped working," and then Collector returns to the map download screen. To narrow down the problem, I systematically removed o each from the map and tried downloading it. I believe that the error is caused by my layer called ANERR_Sea_Turtle_Nesting_Survey, because the maps work on both devices unless this layer is included. If it is included the map only works on iOS. There are only two layers (1) Mile_Markers, and (2) ANERR_Sea_Turtle_Nesting_Survey plus the ESRI basemap. I'm not sure if it is relevant, but the problematic layer was created by Survey123 Connect. I imported it into ArcGIS Pro so I could calculate a field that was then used to update the Symbology on the webmap. Does anybody have any ideas? I have already tried uninstalling Collector, clearing the cache, deleting all of the offline data, rebooting the Android device, re-installing Collector and then downloading the maps. I get the same error. We are in the middle of our field season and all of our crews have Android devices so I'm hoping to resolve this as quick as I can. Thanks for your help, Chris
... View more
07-16-2018
07:00 AM
|
0
|
6
|
959
|
Title | Kudos | Posted |
---|---|---|
1 | 05-07-2018 11:55 AM | |
1 | 08-02-2018 09:52 AM | |
2 | 03-14-2018 12:38 PM | |
1 | 07-19-2018 11:19 AM | |
4 | 02-19-2019 08:16 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|