|
POST
|
Turns out the problem was the target "layer". I was converting my target feature service URL into a feature layer using the below command and that was the target. When I changed the target to the URL parameter, it worked! Now to figure out why the field mapping isn't working and my data is coming in with blank attributes! post_planting_url = "https://services-ap1.arcgis.com/xyzxyzxyzxyzx/arcgis/rest/services/My_Feature_Service/FeatureServer/0"
post_planting_layer = FeatureLayer(post_planting_url)
... View more
09-17-2024
09:02 PM
|
1
|
0
|
3422
|
|
POST
|
Hi Jake. Yes, I believe I have (I am at least meant to have) the Update option enabled (including Geometry). I don't want duplicate records being created. Is there something missing in my code that should be there? From what I can see in the documentation, I have all parameters accounted for.
... View more
09-17-2024
08:29 PM
|
0
|
0
|
3423
|
|
POST
|
Hi Brains Trust. I've given up trying to figure this out on my own. I know that the arcpy Append GP tool will normally let me append data from a feature class to a feature service. However, when running the below code I keep getting the error displayed. Can anyone give me any pointers? I've tried working with Copilot, and also with different methods (e.g. da.updatecursor) but that doesn't work with feature services. # Step 9: Compare and update Post_Planting_Inspection_Tracking_Base
print("Step 9: Comparing and updating Post_Planting_Inspection_Tracking_Base...")
arcpy.management.Append(
inputs=update_data,
target=post_planting_layer,
schema_type="NO_TEST",
field_mapping=r'Plantation "Plantation" true true false 50 Text 0 0,First,#,C:\temp\scratch.gdb\update_data,Plantation,0,50;Forest "Forest ID" true true false 6 Text 0 0,First,#,C:\temp\scratch.gdb\update_data,Forest,0,6;Species "Species" true true false 20 Text 0 0,First,#,C:\temp\scratch.gdb\update_data,Species,0,20;PlantingYear "Planting Year" true true false 0 Long 0 0,First,#,C:\temp\scratch.gdb\update_data,PlantingYear,-1,-1;RENDER_LABEL "Tenure" true true false 255 Text 0 0,First,#,C:\temp\scratch.gdb\update_data,RENDER_LABEL,0,50;PlantingFinished "Planting Finished" true true false 0 Date 0 0,First,#,update_data,MAX_FinishDate,-1,-1',
subtype="",
expression="",
match_fields="Plantation Plantation;Forest Forest;Species Species;PlantingYear PlantingYear;PlantingFinished MAX_FinishDate;RENDER_LABEL RENDER_LABEL",
update_geometry="UPDATE_GEOMETRY"
)
print("Features added/updated - process complete!") Step 9: Comparing and updating Post_Planting_Inspection_Tracking_Base... Traceback (most recent call last): File "C:\Temp\Upload FPC416 Polygons.py", line 130, in <module> arcpy.management.Append( File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 7306, in Append raise e File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 7303, in Append retval = convertArcObjectToPythonObject(gp.Append_management(*gp_fixargs((inputs, target, schema_type, field_mapping, subtype, expression, match_fields, update_geometry), True))) File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in <lambda> return lambda *args: val(*gp_fixargs(args, True)) RuntimeError: Object: Error in executing tool >>>
... View more
09-15-2024
11:09 PM
|
0
|
3
|
3497
|
|
IDEA
|
@JonathanMcD I like your workflow. This could definitely work as a workaround if required going forward (nearly at the end of our migration project so user management will be a lot easier).
... View more
08-29-2024
11:46 PM
|
0
|
0
|
1445
|
|
IDEA
|
Not really - I find that plenty of users have joined by clicking on a link to the org (e.g. from our intranet) and not through the invitation. Then they get added without their customised group settings, roles, etc. So then I need to update them and they don't have a "Never" value in the Last Login date - just mixed in with everyone else.
... View more
08-29-2024
09:58 PM
|
0
|
0
|
1459
|
|
IDEA
|
In ArcGIS Online, I've been in the process of adding bulk users to a new organization, but it's been a bit frustrating trying to cross check at-a-glance who has accepted invitations and who hasn't with a list maintained in a spreadsheet (from another organization). I then discovered, that if I log in with a non-Administrator account, there is this handy little window showing the newest members to join! IDEA: Add the same window to the Administrator view of the Organization page, or add a "joined date" option to the sorting list on the Members page.
... View more
08-29-2024
06:12 PM
|
2
|
4
|
1494
|
|
IDEA
|
@RTPL_AU Nice to know! Hopefully we can get around to testing and rolling out 3.3 before Christmas! (won't hold my breath). I was pleasantly surprised when that copy was successful in around 5 minutes or so!
... View more
08-27-2024
12:11 AM
|
0
|
0
|
1866
|
|
IDEA
|
Cancelling GP tools midway through - nope, gotta think about that first. Or like right now for me - "You're trying to copy 167,000 records? No worries - come back tomorrow please" 🙃🌴
... View more
08-26-2024
11:23 PM
|
0
|
0
|
1880
|
|
IDEA
|
Great question - I didn't know the details myself, but this article has explained it well. KMZ vs KML: What's the Difference? - GIS Geography
... View more
08-22-2024
05:25 PM
|
0
|
0
|
1718
|
|
IDEA
|
Currently, based on the testing I've done, when converting a Map to a KMZ to load onto a Garmin device, it doesn't work. I believe this to be due to the different image formats in use by the different platforms. If I'm not mistaken, ArcGIS Pro outputs PNG image types in the KML/KMZ files produced by running the "Map to KML" tool. However, from my reading online, Garmins required a JPEG format in KMZ files loaded in as a Custom Basemap. IDEA: Allow the option to choose what image format is used in the output file to make the product suitable for Garmins (or, a setting box that configures the output for use in commonly used devices e.g. "Garmin", "Google Earth", etc)
... View more
08-21-2024
08:24 PM
|
3
|
2
|
1778
|
|
BLOG
|
So, based on this, I would assume that when publishing a new feature service from ArcGIS Pro, the more complex symbology would also be honoured and then tweakable in ArcGIS Online. As for modifying existing feature service symbology, without having to resort to a republish of the layer from ArcGIS Pro, you would need to go through the process above and then Save the feature service in the map (or "Save as" as a new layer) to be able to add it to other maps.
... View more
08-15-2024
06:00 PM
|
1
|
0
|
4707
|
|
POST
|
Could it have something to with the geodatabase name and extension being referenced twice in the folder/file path (maybe it's in a folder named the same as the geodatabase and includes the ".gdb" as well)? FAM_CHITARAQUE_2024.gdb\FAM_CHITARAQUE_2024.gdb I do know that ESRI don't "support" cloud storage (e.g. OneDrive) for data storage due to potential conflicts when being accessed by multiple users, but doesn't mean it doesn't work (as you can see).
... View more
08-14-2024
08:48 PM
|
0
|
0
|
737
|
|
BLOG
|
Nice work around. To clarify, Steps 2 & 3 would be the same as opening ArcGIS Pro then opening the webmap from your Catalog's Portal connection (which is how our staff typically find data from ArcGIS Online). Being able to modify a webmap this way though is a new concept for me and something I'm keen to try when the situation undoubtably arises!
... View more
08-14-2024
08:39 PM
|
1
|
0
|
4783
|
|
POST
|
Manually, it would be a case of doing the dissolve process, but before appending in the rest of the unaffected lots, you would select by attribute lots that exceed your threshold and delete them, then append in all the orginal lots that don't overlap a new merged lot (select by location).
... View more
08-14-2024
05:26 PM
|
0
|
0
|
1554
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | Wednesday | |
| 1 | a week ago | |
| 4 | a week ago | |
| 1 | a week ago | |
| 2 | 2 weeks ago |
| Online Status |
Online
|
| Date Last Visited |
yesterday
|