|
POST
|
I just remembered another oddity of sharing as copies. You cannot have two or more layers in your service that reference the same feature layer. As an example, I had two layers in my map that referenced the same bike network line feature class. The first one had a definition query to only show existing routes, and the second one had a definition query to only show planned routes. You can publish a service like this, but you cannot share it via the collaboration.
... View more
2 weeks ago
|
0
|
0
|
57
|
|
POST
|
I've heard people say that "Homeland Security" recommends separating your utility data for water and wastewater treatment plants from the rest of your system's model. (I put DHS in quotes because I cannot find a source for this claim.) A cursory Google search isn't turning up anything useful, so I thought I'd ask how others handle the storage and sharing of their utility data. Do you share any/all of your system data with the public? Are treatment plants separated from the rest of the system? Appreciate any information - including opinions - that the community would like to share.
... View more
2 weeks ago
|
0
|
0
|
119
|
|
IDEA
|
@SSWoodward I decided to go with your sample code since I'm already working with arcpy in a file on my server. I successfully created the new version: server = f"https://xyz/FeatureServer"
version_name = 'python'
arcpy.management.CreateVersion(server, 'sde.DEFAULT', version_name)
new_lyr = arcpy.management.MakeTableView(f'{server}/15', 'default_lyr')
full_version_name = [v.name for v in arcpy.da.ListVersions(server) if version_name in v.name][0]
meter = arcpy.management.ChangeVersion(new_lyr, 'BRANCH', full_version_name) But I cannot get it to switch back to DEFAULT before posting and reconciling. arcpy.management.ChangeVersion(new_lyr, 'BRANCH', 'sde.DEFAULT')
arcpy.management.ReconcileVersions(server, "ALL_VERSIONS", "sde.DEFAULT", full_version_name, "LOCK_ACQUIRED", "NO_ABORT", "BY_OBJECT", "FAVOR_TARGET_VERSION", "POST", "DELETE_VERSION", r"C:\Log.txt", "PROCEED", "RECONCILE") When line 2 runs, it says "Warning: Error deleting version xyz.python. The version is currently in use. [xyz.python] Not running inside a server process. I could change the reconcile to keep the version, but I'd prefer to delete it.
... View more
3 weeks ago
|
0
|
0
|
80
|
|
POST
|
OK, that first part is wild. I agree that it should be impossible for your items to be shared as a reference! I also agree that turning off editing should not be your deal breaker. We don't share any editable services from Portal to AGO. I hate to say it, but with the information you have at this point, I think it's time to endure a tech support call. There might be something more specific in their troubleshooting documentation related to that specific error. If I think of anything else, I'll definitely let you know!
... View more
10-23-2025
07:40 AM
|
1
|
1
|
261
|
|
POST
|
I'm sure you know this, Mike, but the log-in prompt shows up when an item is shared as a reference instead of a copy. Just adding that note for others who might not have gotten that far yet. I dug into my old notes from troubleshooting to see if there was anything else useful. One note I forgot about, which is pretty specific: if you're publishing the service in Portal as a registered service (it connects to the SDE database when published), make sure you are using an account that has more than viewer-level permissions. A viewer account does not have sufficient privileges in SQL Server to allow the collaboration to work. The account I use has read-write permission, but the service that I share via collaboration has editing turned off. The only other thing I saw was a note on checking the Distributed Collaboration logs in Portal Directory (https://yourservername/portal/sharing/rest). After you log in: - Click your username in the breadcrumbs at the top (Community > Users > username) - Click the Org ID hyperlink in the blue box - Scroll to the bottom and click Collaborations (buried in Child Resources) - Click on the Collaboration ID - Click on Collaboration Workspaces - Click on the Collaboration Workspace ID - Click Sync Status (at the bottom under Supported Operations) That will give you a slightly more detailed log than what you see in Portal. Third option is to go to portaladmin, set your log level to debug, run the collaboration attempt again, and then check that log file. I recall that there were some additional clues in there that helped me narrow down my issue. So ... no real "a-ha" suggestions here, but I thought I'd share just in case.
... View more
10-21-2025
08:21 AM
|
0
|
3
|
306
|
|
POST
|
Did this bug come back? I'm troubleshooting the same way Ellie did and am not getting a widget to auto-open on load.
... View more
10-17-2025
11:21 AM
|
0
|
0
|
132
|
|
POST
|
I have a colleague with an issue I am unable to replicate. They have a Pro project set up with ~10 layers, some of which are visible by default and some of which are not. When they publish the map as a feature layer, the visibility settings are ignored and all layers are visible by default. Have I just never noticed that this is a "feature" of publishing registered services in Enterprise 11.3 or is there a setting somewhere that I am handling differently than them without realizing it?
... View more
10-16-2025
02:50 PM
|
0
|
2
|
243
|
|
POST
|
Do you get any error messages when the point layer fails to copy? Usually the messages are pretty worthless, but every now and then you get something helpful. I've fought the distributed collaboration with almost the same setup you described. Another thing you can check is if your point layer has any fields hidden in the attribute table in your Pro project. I had layers fail to sync when certain fields were hidden (globalID, editor tracking fields, shape, OID).
... View more
10-16-2025
02:46 PM
|
1
|
1
|
411
|
|
POST
|
@DiveshGoyal - the layer in question does not have a subtype. I tried adding the Expects function and pointing it toward the field that we are using to symbolize (which does have a domain), but there was no change in Field Maps. Happy to test other options if it can help!
... View more
10-13-2025
12:44 PM
|
0
|
0
|
182
|
|
POST
|
Did you try using your editing service for the UN instead of a direct connect to the database? I believe the tool wants the service.
... View more
10-09-2025
01:53 PM
|
0
|
0
|
252
|
|
POST
|
@KenBuja - that worked! Looks like adding First() is what I needed. Seems odd to me that it didn't need that function for the parcel layer, but perhaps there is some overlapping geometry in the zoning that I need to find. Thank you and @RPGIS for sticking with me on this.
... View more
10-08-2025
06:14 AM
|
0
|
0
|
265
|
|
POST
|
@RPGIS your first assumption is correct - all three layers are published as one service. I only need to pull the intersecting value from the Lawrence Zoning District layer, but it wouldn't hurt to pull the value from the Conditional Zoning layer. Either way, neither Within() nor Intersects() works with the zoning service. It does work with our parcel service. The parcel service just has one layer, which is what led me to suspect that the multi-layer service was the issue for me. I took that exact block of code in the screenshot above and just swapped out parcel for zoning, and it returns an error. @KenBuja you asked, "Did you test the code on an actual feature in the Zoning District?" Yes, I did try that. No luck. All three of these services are public, so if anyone wants to test on the actual data, here are links to the item pages in AGO: Address Point: https://lawrenceks.maps.arcgis.com/home/item.html?id=0e4a33c0f05e483284f046c220b8f0c0 Parcel: https://lawrenceks.maps.arcgis.com/home/item.html?id=08285f4b4aca41a785afcc47c5044d2e Zoning Districts: https://lawrenceks.maps.arcgis.com/home/item.html?id=8cfd05010c2d4cc499cc701c91e3c2b0
... View more
10-07-2025
01:15 PM
|
0
|
3
|
280
|
|
POST
|
Is there a trick to using the Within function when referencing a layer in a multi-layer feature layer? I used a simple Within function to add the intersecting parcel PIN number to an address point's pop-up, but when I try to get its zoning, here's what happens: If I comment out the Within function and just tell it to return all zoning data, it works: The difference between my parcel feature layer and my zoning feature layer is that the zoning layer has three layers in it: The FeatureSetByName function doesn't seem to care that it's in a group, but maybe Within does? I did try adding the Lawrence Zoning District sublayer by itself to the map, but I got the same results.
... View more
10-06-2025
10:33 AM
|
0
|
9
|
340
|
|
IDEA
|
@SSWoodward and @MarceloMarques - Thank you! I have only dabbled in the ArcGIS API for Python and it didn't even occur to me to look there. I will pursue this path.
... View more
09-19-2025
06:33 AM
|
0
|
0
|
424
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-28-2025 06:14 AM | |
| 1 | 10-23-2025 07:40 AM | |
| 1 | 10-16-2025 02:46 PM | |
| 1 | 09-08-2025 02:20 PM | |
| 1 | 08-29-2025 01:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|