|
POST
|
I'm struggling to find detailed documentation or training on trace networks, so I hope someone here can provide guidance. I have two utility systems (stormwater and potable water) that both have their own trace networks. Let's just use stormwater as my example. In case it matters, we are using branch versioning. The stormwater trace network has 8 feature classes that participate: I need to add a field to ssManhole, ssValve, and ssFitting. If I add this field, what happens to the trace network? Do I need to rebuilt topology? Do I need to create a completely new trace network? Or will the trace network ignore the new field since it has nothing to do with flow or connectivity? (It's a text field that will hold a URL to a folder with photos.) Side note, if there are any classes on trace networks, I'd love a referral. I've search esri.com/training but haven't found anything. The online documentation makes it seem like trace networks are very simple and straightforward, but my experience with Esri behaviors in the past suggests otherwise!
... View more
04-08-2025
06:28 AM
|
0
|
1
|
506
|
|
IDEA
|
I agree - having a way to set a different measurement default would be very helpful for us.
... View more
04-07-2025
08:35 AM
|
0
|
0
|
933
|
|
IDEA
|
I just logged in to suggest this! Definitely need this option.
... View more
04-07-2025
08:34 AM
|
0
|
0
|
426
|
|
POST
|
I think that's the correct answer, George! Thank you.
... View more
03-05-2025
05:59 AM
|
1
|
0
|
800
|
|
POST
|
You found more than I was able to track down! Thank you.
... View more
03-05-2025
05:57 AM
|
0
|
0
|
801
|
|
POST
|
That link is interesting - the list of what I would call "behaviors" on that page are described as "supported data types." That's a pretty generic term that could be used to describe feature classes and tables, I would think. Interesting, though, that there is no use of the word "behaviors" on that documentation. Perhaps it's not a ubiquitous term. Thank you for sharing that!
... View more
03-05-2025
05:57 AM
|
0
|
0
|
801
|
|
POST
|
Many years ago, I took an Esri instructor-led class where I learned that things like geometric networks, trace networks, parcel fabrics, etc could be lumped together under an umbrella term called "behaviors". When I Google that term, however, I do not find it in any of the Esri documentation. Is there a collective noun that can be used for special functionality that requires the feature classes that participate in it to be in a feature dataset?
... View more
03-04-2025
01:27 PM
|
0
|
6
|
873
|
|
POST
|
This is in ArcGIS Pro 3.3.0. When I am setting up a definition query in Pro on my address point layer, there doesn't appear to be a function that reduces the options in the pick list when you start to enter a value. For example, let's say I'm looking for 400 Main St. If I type in 400 and click the drop-down, shouldn't I see a filtered list of addresses that start with 400? I thought perhaps I needed to click the More button to load the full list of values, but even after doing that, my pick list gives me every possible option in the feature class. If that's not how the definition query menu is designed to work, I want to put in a suggestion on ArcGIS Ideas because this isn't user friendly.
... View more
02-03-2025
07:49 AM
|
0
|
4
|
474
|
|
POST
|
After further testing, I found that the User role cannot edit Utility Networks, but the Publisher role can. However, there is something going on with browser caching that complicates the testing. Here's what I mean: 1. I set my test user as a Publisher. It can edit the UN data in a web map. 2. I change the test user to the User role. The edit button is removed from the web map. 3. I change the test user back to the Publisher role. The edit button does not reappear. Clearing the browser cache does not resolve this issue. 4. If I open an identical copy of the original web map, the editing button reappears. Side note: we use IWA to authenticate. I don't know how this would change with built-in accounts. In general, I think it's odd that the Publisher role is allowed to edit utility networks, given that the additional privileges that come with the Publisher role are all related to publishing items to Portal. Nonetheless, there is something about the Publisher role that allows the users to edit UN services. I should also note that a Data Editor role can edit user-managed services that are pulling data from enterprise geodatabases as long as the Advanced Editing extension is activated. You would think that the same settings would work with a user-managed service that uses the UN, but it does not. This strikes me as a possible bug in 11.3.
... View more
12-26-2024
04:26 PM
|
1
|
0
|
657
|
|
POST
|
I'm struggling to find a straightforward answer to this question: what privileges are required to edit data in a Utility Network in a web map in Enterprise Portal 11.3? The normal Data Editor role does not allow it (even if the Advanced Editing extension is enabled), nor does User or Publisher. However, I have a custom role called Sub Administrator, and everything with that role and higher is able to edit. That leads me to believe there is one or more specific privileges that are required for editing UNs. Anyone have any insight?
... View more
12-26-2024
03:49 PM
|
0
|
1
|
665
|
|
POST
|
I'm a lot closer now after making quite a few changes. Now I'm getting the error message: A general error occurred: Circular reference detected
ERROR: A general error occurred: Circular reference detected I believe that the error is in line 42. I replaced some info with ... for security purposes. from arcgis.gis import GIS
gis = GIS("home")
# Import arcpy module
from arcgis.gis import GIS
from arcgis.features import FeatureLayer, GeoAccessor # might not need that last one?
import time, arcpy, os, datetime
# Variables
s123Layer = r'https://services.arcgis.com/.../FeatureServer/0'
report_copy_url = r'https://services.arcgis.com/.../FeatureServer/0'
try:
item = gis.content.get("...")
feature_layer = item.layers[0]
field_name = "ReportDate"
query_result = feature_layer.query(out_statistics=[{"statisticType": "max", "onStatisticField": field_name}])
milliseconds = query_result.features[0].attributes[f"MAX_{field_name}"]
date_time = datetime.datetime.utcfromtimestamp(milliseconds / 1000.0)
max_date = date_time.strftime('%Y-%m-%d %H:%M:%S')
print("Most recent report date in ...:", max_date)
feature_layer = FeatureLayer(s123Layer, gis=gis)
query = f"submission_date_and_time > timestamp '{max_date}'"
selected_features = feature_layer.query(where=query)
print(f"Number of new features to append to ...: {len(selected_features)}")
###### SCRIPT WORKS TO THIS POINT #######
if len(selected_features.features)>0:
fm = [{'ObservationDate':'ReportObservationDate',
'CampsiteDescription':'ReportCampsiteDescription',
'FollowUpRequest':'ReportFollowUpRequest',
'SubmitterName':'ReportSubmitterName',
'PreferredContact':'ReportSubmitterPreferredContact',
'EmailAddress':'ReportSubmitterEmailAddress',
'PhoneNumber':'ReportSubmitterPhoneNumber',
'submission_date_and_time':'ReportDate'
}]
targetLayer = FeatureLayer(report_copy_url,gis=gis)
targetLayer.append(selected_features.features, field_mappings = fm, return_messages = True)
else:
print("No new reports to load into ...")
except Exception as e:
print(e)
arcpy.AddError(str(e)) @JakeSkinner @Clubdebambos - do you see any issues?
... View more
12-04-2024
01:19 PM
|
0
|
0
|
572
|
|
POST
|
Thank you! That worked for error trapping. I fixed the issue, but field mapping doesn't work. if len(selected_features.features)>0:
field_mapping = {'ObservationDate':'ReportObservationDate',
'CampsiteDescription':'ReportCampsiteDescription',
'FollowUpRequest':'ReportFollowUpRequest',
'SubmitterName':'ReportSubmitterName',
'PreferredContact':'ReportSubmitterPreferredContact',
'EmailAddress':'ReportSubmitterEmailAddress',
'PhoneNumber':'ReportSubmitterPhoneNumber',
'submission_date_and_time':'ReportDate'
}
sdf = feature_layer.query(where=query)
feature_layer.edit_features(adds = sdf, field_mapping=field_mapping) Line 12 generates the error: FeatureLayer.edit_features() got an unexpected keyword argument 'field_mapping'
ERROR: FeatureLayer.edit_features() got an unexpected keyword argument 'field_mapping' I tried using field_mappings (plural) since that's listed in the FeatureLayer append method as a keyword, but no luck. So then I thought I'd try the append method, but I'm getting Unknown Error (Error Code: 500) in response to this: if len(selected_features.features)>0:
field_mapping = [{'ObservationDate':'ReportObservationDate',
'CampsiteDescription':'ReportCampsiteDescription',
'FollowUpRequest':'ReportFollowUpRequest',
'SubmitterName':'ReportSubmitterName',
'PreferredContact':'ReportSubmitterPreferredContact',
'EmailAddress':'ReportSubmitterEmailAddress',
'PhoneNumber':'ReportSubmitterPhoneNumber',
'submission_date_and_time':'ReportDate'
}]
sdf = feature_layer.query(where=query)
feature_layer.append(sdf,
field_mappings = field_mapping,
return_messages = True) My guess is that the error code is the result of not specifying an item_id, since sdf is a selection of records and not an entire item. Any ideas on what to try next? I wish the ArcGIS API for Python documentation consistently provided sample code like the arcpy documentation does.
... View more
11-21-2024
08:25 AM
|
0
|
0
|
1762
|
|
POST
|
Just for clarification, I do have the variable feature_layer defined earlier in the script and it's working properly. item = gis.content.get("999999999") # actual item id has been removed for this chat
feature_layer = item.layers[0]
... View more
11-19-2024
02:28 PM
|
0
|
1
|
1775
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | Friday | |
| 2 | a month ago | |
| 1 | 05-12-2025 06:28 AM | |
| 1 | 12-04-2025 07:20 PM | |
| 1 | 06-26-2025 12:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|