|
POST
|
I have done this quite a bit, but I don't bother with the featureset (other than to query it) I get a [List] of the OID's (I use GlobalID's, but OID's should work fine) of the features from the hosted feature service, then pass that 'expanded' list as the Where clause in arcpy.management.Append. Post = r'\\computer\path\database.sde\owner.SCHEMA.Posts'
item_id = '3b61fd5e5e9842dc80sdfsd443465' # Hosted Post data
item = portal.content.get(item_id)
lyr1 = item.layers[1] # Portal Features
AddPostList = ['123','124','125',....] # List of GlobalID's to append to SDE data
with arcpy.EnvManager(preserveGlobalIds=True, maintainAttachments = True, scratchWorkspace=r"\\path\to\Default.gdb", workspace=r"\\path\to\Default\Default.gdb"):
Post = arcpy.management.Append(inputs=[lyr1.url], target=Post, schema_type="NO_TEST", subtype="", expression="GlobalID IN ('" + '\',\''.join(AddPostList) + "')")[0] Below, you can see how the list gets expanded: I have stripped the field mapping from this code as it needs the full path to the HFS fields, so it was too much and confusing to post. R_
... View more
11-03-2025
02:33 PM
|
2
|
0
|
623
|
|
POST
|
You will need some temp storage space as I see the downloadable dataset is nearly 1.5Gb. But, download the zip file, unzip it, load the unzipped tif file into Pro, then use the Clip Raster GP tool to clip out the area of interest. For the output extent, you can click on the pencil and select Polygons, and it will create a new polygon layer that you can edit and sketch the area of interest and run the tool. R_
... View more
10-30-2025
04:32 PM
|
0
|
0
|
364
|
|
POST
|
Depends on how "simple" you want. One simple way is to load into Pro/ArcMap and symbolize on the Phase Configuration field, then select Show Counts. R_
... View more
10-30-2025
04:04 PM
|
1
|
0
|
435
|
|
POST
|
This is a couple versions old, but pretty sure multipoint layers are still not supported in FM app. Technical Article that might help. R_
... View more
10-30-2025
02:04 PM
|
0
|
0
|
309
|
|
POST
|
Have you tried running the Repair Geometry GP tool on the shapefile? R_
... View more
10-30-2025
10:23 AM
|
0
|
0
|
213
|
|
POST
|
@SupriyaK wrote: If you look at the screenshots above the aliases/display names are set at the data level. That is the whole issue, they aren't being honored in the visualization. Actually, in the case I submitted above, I see just the opposite. Setting it in the Visualization is honored in the data table, popups, etc. but is NOT honored in the Data/Fields tab of the item details. Even though the alias's are changed in the visualization, which seems to be honored in the Data/Table, and in any popups/tables when added to a new webmap, it still shows them as the same in the Data/Fields tab. However, as you say, if you load the link above into a new webmap, it (tables, popups) honors the alias's set in the service. But, if I create an AGOL item from it, will only display by the field name, even though the alias shows in the Display Name in Data/Fields. But, if I go into the visualization tab of the new item (that loads this service), I can change the Display name to what I want, and it is now honored in everything EXCEPT the Data/Fields tab. So, testing with these two feature services, it appears that changing things in the visualization tab of the item does seem to work in most places, the Display name in the Data/Fields tab in the item details is very misleading and seems to have nothing to do with what is actually displayed elsewhere so probably best to ignore what it says. So, if I add the REST endpoint you provided into a new AGOL item and look at the Data/Table, it shows how, as you noted, they have reverted to the Field name and not the alias set in the service: But, if you look at the Fields Tab, it shows as if the alias are preserved from the REST service: If I go to Visualization tab of the item details and change the Display name there (I only changed the first 3 to make them obvious) and remember to Press the Save link: then the Data/Table will show the updated Display names that were set in the Visualization tab: BUT, if you look at the Data/Fields tab, nothing has changed: Then, load that new AGOl item into a new webmap, and the table and popups honor the changes I made in the visualization tab: So best to completely ignore the Data/Fields tab when testing as it seems to have nothing to do with anything. You might consider a tech support case on this, as there definatly seems to be a bug in the system. It appears that the Data/Fields tab in the item details is honoring the field name/alias's set in the REST service, BUT, everything else is not. R_
... View more
10-15-2025
01:28 PM
|
1
|
0
|
377
|
|
POST
|
I use python to do this for my street names. First, I create a dictionary, then I use arcpy.da.SearchCursor to populate it with my street Code:Value pairs: (I don't have a street called "Pathway" in the source table, so below is how I 'add' it to the list) import arcpy
update_dict = {"fields": [
{
"name": fieldname,
"domain" :{"type" : "codedValue", "name" : domainname,
"codedValues" :[
{"name" : "Pathway", "code" : "Pathway"}
]}}]}
with arcpy.da.SearchCursor('streetsFC', ["Code","Street"]) as cursor:
for row in cursor:
update_dict['fields'][0]['domain']['codedValues'] += [{"name" : row[0] , "code" : row[1]}] dictionary format is as follows: update_dict = {"fields": [
{
"name": "StreetName",
"domain" :{"type" : "codedValue", "name" : "Streetnames",
"codedValues" :[
{"name" : "10th Ave", "code" : "10th Ave"},
{"name" : "10th St", "code" : "10th St"},
{"name" : "First St", "code" : "First St"}
]}}]} Then I use the python API to update the domain list on the HFL in AGOL: from arcgis.gis import GIS
my_agol = GIS(url='https://yourorg.maps.arcgis.com', username='adminuser', password='adminpass')
lyr = my_agol.content.get('ItemIdNumber').layers[0]
update = lyr.manager.update_definition(update_dict) Not sure how responsive Field Maps would be with that many values in a dropdown, but my streets with 5100 values works fine. Also, whatever order the domains are in the update_dict is the order they appear in the dropdown. R_
... View more
10-15-2025
08:13 AM
|
1
|
0
|
388
|
|
POST
|
It appears as if that is still available, it is just accessed differently now. It used to be, if you were editing the feature, you could click on the attachment, it would open it up and give you the option to rename it. If you pressed and held, you could remove it. It appears now that you no longer have to 'open' the attachment, just click and hold and a menu pops up with the options to Rename, Share, or Remove. R_
... View more
10-14-2025
04:28 PM
|
0
|
1
|
367
|
|
POST
|
Did you try the Feature to Line tool? Don't have your data to test, but my testing splits all the lines exactly at the polygon boundary so that the one to many spatial join has a single match for each line segment. It also retains all the attributes as well. R_
... View more
10-14-2025
07:45 AM
|
0
|
0
|
833
|
|
POST
|
That is weird. The snapshot I provided last is what i see in the Visualization tab in AGOL, but I see the same as yours in Portal 10.9.1. Perhaps an org setting or something? Afraid I won't be able to help with that one. R_
... View more
10-13-2025
09:11 AM
|
0
|
0
|
200
|
|
POST
|
After seeing this screenshot, it appears that you are in Portal, not AGOL? I don't know if this option existed when Visualization tab was still opening in Classic like your screenshot. I don't see it in Portal 10.9.1.... In AGOL, Visualization tab has access to the Layers, and then the table: R_
... View more
10-13-2025
08:28 AM
|
0
|
0
|
207
|
|
POST
|
I've had similar need, but in my case, most of my lines crossed the polygon instead of following it. I used the Feature To Line tool with my line layer and the polygon layer as inputs with Preserve Attributes selected. This creates a fc with all the lines, both polygon outlines and the input line fc data, split at the intersections, with attributes from each. I then select all features in the output that have a null value for the copied over ID field from the lines. This way, I'm selecting only the polygon boundaries (as they don't have that particular ID field) and then I delete them. Then I delete the un-needed polygon attributes that were carried over to the lines. This leaves me with an attributed copy of my line input data that is split at each of the polygon boundaries that I can use for my spatial join(s). Have not run into it myself, but the Feature To Line tool has 'some' flagging/handling of coincident lines/boundaries as well. Different scenario, but thought I'd put it up here as don't think that is what that tool was originally intended for. R_
... View more
10-09-2025
01:08 PM
|
0
|
0
|
916
|
|
POST
|
you can try the Check Geometry or Repair Geomtetry GP (which has a Delete Features with Null Geometry setting) tools to see if it has issues. Always safest with tools such as Repair Geometry GP tool which modify the existing featureclass to test on a copy first. At least if it will allow you to copy it. R_
... View more
10-09-2025
12:40 PM
|
0
|
0
|
357
|
|
POST
|
To set it at the data source level, you will need to open your contents page and navigate to the folder where the FERM engagement v1 251002 hosted feature service is located, click on the three dots to the right, and select View details. In there you will see the Visualization and Data tabs in the upper right. R_
... View more
10-09-2025
09:05 AM
|
0
|
2
|
846
|
|
POST
|
I am not seeing a difference. I have also not always had good luck with just clearing cache. You might load the webmap in Edge, press the F12 button to enter developer mode, then right-click on the reload button and choose "Empty cache and hard refresh" and see if that makes a difference. You can close developer mode once it starts reloading. R_ Edit: To add, I am still on Windows 10
... View more
10-09-2025
08:36 AM
|
0
|
0
|
603
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 1 | 12-10-2025 02:05 PM | |
| 2 | 12-05-2025 01:12 PM | |
| 1 | 10-30-2025 04:04 PM | |
| 2 | 11-03-2025 02:33 PM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|