|
POST
|
Also, if it is a large table with no attachments (since truncate won't truncated associated attachments tables) it may be faster to unregister as versioned, truncate, then re-register as versioned. R_
... View more
04-24-2024
08:09 AM
|
0
|
0
|
2650
|
|
POST
|
This is working for me on a SDE featureclass, versioned, moving edits to base. import arcpy, os
sde = r"C:\Users\User\AppData\Roaming\Esri\ArcGISPro\Favorites\sdeConnection.sde"
fc = r'C:\Users\User\AppData\Roaming\Esri\ArcGISPro\Favorites\sdeConnection.sde\FeatureDataset\FeatureClass'
edit = arcpy.da.Editor(sde)
edit.startEditing(False, True)
edit.startOperation()
arcpy.management.DeleteRows(fc)
edit.stopOperation()
edit.stopEditing(True) Not sure, but suspect it has something to do with the workspace path. You say that os.path.dirname(sde) is reporting: "C:\Users\User\AppData\Roaming\Esri\ArcGISPro\Favorites\sdeConnection.sde". Is that when you print(workspace), or just enter workspace at the prompt? If this is the actual path being sent to the editor (just typing workspace at the prompt), then it will have issues. The editor is expecting "C:\\Users\\User\\AppData\\Roaming\\Esri\\ArcGISPro\\Favorites\\sdeConnection.sde". So, if the above code still doesn't work, I'd try hardcoding the workspace to see if it is related to that. edit = arcpy.da.Editor(r"C:\Users\User\AppData\Roaming\Esri\ArcGISPro\Favorites\sdeConnection.sde") Should at least help narrow down the issue. R_
... View more
04-24-2024
08:02 AM
|
0
|
2
|
2650
|
|
POST
|
Is it versioned, moving edit to base? Also, Truncate Table can not be used on versioned data. R_
... View more
04-23-2024
03:44 PM
|
1
|
5
|
2660
|
|
POST
|
I was having the same issues trying to do a dashboard in AGOL. The Shape.STLength field isn't actually in the enterprise table, but is somehow connected 'on the fly'. There is probably a better way, but to overcome this, I created a view in SQL Server, then registered that view with the database. CREATE VIEW [dbo].[_WatermainsView]
AS
SELECT Material, Owner, Shape.STLength() AS Length, Shape.STLength() / 5280 AS Miles, Shape, OBJECTID
FROM dbo.WPRESSURIZEDMAIN I then load that view instead of the featureclass for my services. This example will not only have a column named "Length" that is in map units (equal to what the Shape.STLenght() is) as well as as a column named "Miles" that is miles so I don't need to do the convertion in the dashboard or popups. R_
... View more
04-18-2024
04:25 PM
|
2
|
0
|
1784
|
|
POST
|
I'm really not a CAD guy, but don't believe it has the ability to spatially import GeoPDFs at this time, maybe I'm wrong, but I only see a way to import them as an image. But, if you really do have a GeoPDF (pdf with spatial information), there is no need for the CAD step as you can use the PDF to tiff conversion tool in Pro to import the PDF (with Write GeoTIFF Tags checked) to a geoTiff that will draw in the correct location (at least, the location of the PDF). If it is just a pdf without any spatial information, just convert it to a tiff/jpeg, add to Pro project and georeference to the desired coordinate system. R_
... View more
04-18-2024
07:57 AM
|
0
|
0
|
6779
|
|
POST
|
Hard to tell without an example of the .txt file. Perhaps there are some leading/trailing spaces in some of the cells, decimal points in wrong place? Also, you may check this link and see if anything applies: Using a CSV file in the XY Table To Point tool returns a warning message in ArcGIS Pro R_
... View more
04-17-2024
01:30 PM
|
0
|
0
|
2347
|
|
POST
|
I initially had similar issues, though on Windoze 10. Even though some of the installers reported that it installed the .NET desktop runtime, it was NOT installing properly as I had previous version already installed. The solution was to run the .NET desktop runtime installer from command line in silent mode. This added the proper runtime to the already installed versions. I was then able to run the Pro installer by double clicking it. Not sure this applies, but thought I'd throw it out there. R_
... View more
04-17-2024
01:27 PM
|
0
|
0
|
3054
|
|
POST
|
Here is a HFS that has that ability in it. I built it in Pro and published to AGOL (don't set the use symbol types compatible with all clients or it will break it). This one is a little more in-depth than you are after as it changes from Point to Polygon not just on view scale, but also based on the area of the polygon as well, but could easily be modified. R_
... View more
04-17-2024
12:51 PM
|
2
|
0
|
4539
|
|
POST
|
Well, I have avoided related features in AGOL due to several issues in the past, so not really sure how to help with this one. In the second photo above (after you click the link in image 1), the list of related features comes up. I see there is a copy button on that screen as well. Curious what happens when you click that? Does it give you the copy shape option, then you can click the Planted Marsh area and have it auto copy the feature? R_
... View more
04-17-2024
09:23 AM
|
0
|
0
|
3463
|
|
POST
|
Have not tested this with 3.x, but with 2.7, if I commented out any print statements, my scripts will run in a fraction of the time. So, in most all my scripts, I set a debugPrint variable at the top, then I have replaced the print statements with: debugPrint = True
.
.
.
if debugPrint:print('What ever you want') So, normally, debugPrint = False so that the script runs much faster, but If I'm having issues, I toggle it to True so I can get the printouts. R_
... View more
04-17-2024
09:14 AM
|
2
|
2
|
4607
|
|
POST
|
That is weird. Currently, I'm not using any related tables in my Field Map apps, but in Field Maps App, all the editable layers that I have set up a Form for will show when I hit the Plus button. The Form: After hitting blue Plus button: Once copied, I hit the Plus button, then select which layer I want it to copy to. Since your previous pic only shows one layer, how/where are you currently adding the planted marsh polygon manually? R_
... View more
04-16-2024
10:16 AM
|
0
|
1
|
3485
|
|
POST
|
What do you see if you open the map and push the Plus button (before pushing anything else)? R_
... View more
04-16-2024
09:38 AM
|
0
|
3
|
3490
|
|
POST
|
Once you have submitted your marsh zone polygon, it will show in the popup. Or, if you have closed the popup, just click on the created polygon to select it (do not go into edit mode), then scroll down to the copy shape button. Create new polygon, then Copy Shape: Now, press the add data plus sign, choose the Planted marsh template, and it will automatically copy the shape to that layer, and open up the form for the newly created shape. (Just don't add point as it will add another point at your location to the copied shape) Basically, everything is the same as adding a new planted marsh polygon, but have copied the shape before selecting the add planted marsh template. As you can see, there are two polygons here, but one is under the other so not visible. R_
... View more
04-16-2024
09:10 AM
|
0
|
5
|
3495
|
|
POST
|
have you tried putting the where clause in the cursors themselves? Might help limit what is being loaded. R_
... View more
04-16-2024
09:04 AM
|
2
|
1
|
1370
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:00 PM | |
| 1 | 09-14-2022 07:53 AM | |
| 1 | 09-14-2022 08:23 AM | |
| 1 | 05-21-2026 08:53 AM | |
| 1 | 05-14-2026 04:28 PM |
| Online Status |
Online
|
| Date Last Visited |
Monday
|