|
POST
|
So does that mean that the parcel fabric dataset will ALWAYS have a username in front of it? Am I interpreting that correctly?
... View more
05-25-2023
06:21 AM
|
0
|
1
|
931
|
|
POST
|
I'm looking for a basemap that I can use that has no text labels at all. We have our own data that I'd like to use for that. I would like for it to have bodies of water, streams, and things like that on there, however. I would even like for it to have roads symbolized on it. Just with no text labels. It seems like all of the ESRI basemaps, however have those features rolled in with the reference layer, so if you cut off the reference layer to get rid of the labels, it also cuts off everything but the hill shade. Any other solutions out there or better yet a way to customize the basemap to make it more useful with our data?
... View more
05-25-2023
06:05 AM
|
0
|
5
|
3248
|
|
POST
|
I guess what is confusing to me is that I was under the impression that we were using the DBO schema. I believe that when the Create Enterprise Geodatabase tool was ran, the option "SDE Owned Schema" was left unchecked. Wouldn't that mean that it would be using a dbo schema? Moreover, in the past, whenever I created any feature classes or datasets with my OS authenticated user, it still had DBO appended rather than my user name. In this particular case, however, several threads like this one, have stated that Parcel Fabric owners can't use the DBO schema, but I've been unable to find anything about this in the official ESRI documentation.
... View more
05-23-2023
01:28 PM
|
0
|
3
|
4825
|
|
POST
|
Ok. So I do have an update but I'm just as confused as ever. First, I deleted the parcel fabric from the enterprise database. I used the "create database user" tool to create a new database authenticated user. I went to SSMS to give that user the "db_owner" role I then copied the parcel fabric from the file geodatabase to the enterprise geodatabase. It copied fine, but now that feature dataset is prefixed with "TestGISadmin.ParcelFabric". I have never seen this before. Every other feature class and dataset is prefixed with "DBO" Did I do something wrong? I would prefer our enterprise data not be affiliated with a particular user so is there something that I can do to have it copied with the "DBO" prefix instead?
... View more
05-19-2023
06:17 AM
|
0
|
5
|
4849
|
|
POST
|
Thanks Gordon! Regarding "selecting a default schema in SMSS," what schema would you select? From what I've gathered, dbo is not recommended. We are having some weird issues with that now. Our GISadmin user was previously a sysadmin, so it had the dbo schema applied. But according to ESRI tech support, this can cause problems. In our case we are getting an error when trying to publish our parcel fabric. The message says something along the lines of the connected geodatabase user "GISadmin" is not the branch version dataset's owner. I've done everything that I can think to resolve it but it seems like it being set as sysadmin has just ruined the login, at least for creating a parcel fabric. Tech support thinks we are most likely going to have to just delete the GISadmin user and create a new one. I'm sure this all stems from something I did wrong when setting it up the first time!
... View more
05-12-2023
01:42 PM
|
1
|
1
|
4933
|
|
POST
|
Thanks for tips! I would love to take some of those courses, but unfortunately we just don't have the budget for it!
... View more
05-12-2023
01:32 PM
|
1
|
0
|
4933
|
|
POST
|
I've found myself acting as the database administrator for our organization despite never having any formal database training, so I have a few questions. What are the best practices as far as user logins on the sql server? We currently have a "GISadmin" login and then a bunch of individual user logins. The GISadmin login has been used as sysadmin and only used for administrative tasks like reconciling versions and database maintenance. However we have recently had an issue trying to create a parcel fabric on the eGDB and I think it has something to do with the GISadmin having sysadmin privileges. Looking around, it seems like it is recommended that sysadmin versions should not own data. Is that correct? If that is the case, who should there be a designated "data_owner" login that owns all data? If so, what server roles and permissions should that login have? Adding on to the previous question, are there any other user logins that are considered best practices outside of the standard admin login and individual users? If yes, what are they and what is their purpose and what permissions would they need? Is it better to create users using the ArcGIS Pro tool or in SSMS? I have been using SSMS because, at first, it seemed easier. I could create the login and then map it to all databases at once using the Login>properties>user mapping window and then grant permissions. If I use the arcgis pro tool, I had to run the "Create Database User" tool for each enterprise geodatabase (so in my case 4 times). I recently found out, however, that the arcgis pro tool also creates user schemas in each database, which is not done automatically if you map the user in SSMS. Is there anything else that is missed if you create it using SSMS? Are there any free/affordable training options for someone out there for someone like me who has no database admin experience but needs to learn it? It would be great if it was geared toward GIS database admin. The problem I'm having is that most sources I have come across don't really touch the GIS side of database administration. I need to find something that will help me better understand the SQL server management side of things while wearing the GIS glasses.
... View more
05-12-2023
04:54 AM
|
1
|
13
|
5941
|
|
POST
|
Thank you! I've pinged him as well because I tried his version of the script and got the same issue. Since his defaults to searching apps, it also takes about 3.5 hours to run. We have less than 100 actual apps in our org, so I genuinely have no clue what could be causing this.
... View more
05-05-2023
07:44 AM
|
0
|
0
|
1291
|
|
POST
|
So I swapped to @jcarlson's version, just to see if I experienced the same issue, and I do. Tool is still taking a long time to run while seemingly looking through our web applications. I did add in some messages so I could see where it was stalling out. Here is the updated script: from arcgis.gis import GIS
import pandas as pd
# Log in to portal; prompts for PW automatically
gis = GIS('home')
username = gis.properties.user.username
arcpy.AddMessage("Logged in as: " + username)
# Set up input parameters to us in the GUI
find_id = arcpy.GetParameterAsText(0)
find_url = gis.content.get(find_id).url
arcpy.AddMessage("Looking for all instances of " + find_url + "in organization.")
# Pull list of all web maps in portal
arcpy.AddMessage("Pulling list of all web maps in organization")
webmaps = gis.content.search('', item_type='Web Map', max_items=-1)
# Return subset of map IDs which contain the service URL we're looking for
arcpy.AddMessage("Grabbing maps that contain target feature class.")
matches = [m.id for m in webmaps if str(m.get_data()).find(find_url) > -1]
# Pull list of all web apps in portal
arcpy.AddMessage("Compiling all web apps in organization.")
webapps = gis.content.search('', item_type='Application', max_items=-1)
# Create empty list to populate with results
arcpy.AddMessage("Generating empty list to load results.")
app_list = []
# Check each web app for matches
arcpy.AddMessage("Checking each web app for matching feature class")
for w in webapps:
try:
# Get the JSON as a string
wdata = str(w.get_data())
criteria = [
wdata.find(find_url) > -1, # Check if URL is directly referenced
any([wdata.find(i) > -1 for i in matches]) # Check if any matching maps are in app
]
# If layer is referenced directly or indirectly, append app to list
if any(criteria):
app_list.append(w)
# Some apps don't have data, so we'll just skip them if they throw a TypeError
except:
continue
pd.DataFrame([{'title':a.title, 'id':a.id, 'type':a.type} for a in app_list]) It is stalling on the "Checking each web app for matching feature class message."
... View more
05-05-2023
05:32 AM
|
0
|
0
|
1385
|
|
POST
|
I've been doing some spring cleaning of our ArcGIS online organization. In doing so, I kept wanting a way to find out what maps and apps a feature service was used in. That lead me to this thread, which has been very helpful. I am attempting to use @Katie_Clark's excellent version from page two which is set up to run like a GP tool. Here is the code: from arcgis.gis import GIS
import pandas as pd
# Log in to portal; 'home' uses the credentials used to login within Pro
gis = GIS('home')
# Set up input parameters to use in the GUI
find_id = arcpy.GetParameterAsText(0)
search_type = arcpy.GetParameterAsText(1)
find_url = gis.content.get(find_id).url
if search_type == 'Web Map':
arcpy.AddMessage("Searching for Web Maps. This could take a few minutes...")
# Pull list of all web maps in portal
webmaps = gis.content.search('', item_type='Web Map', max_items=-1)
# Return subset of map IDs which contain the service URL we're looking for
matches = [m.id for m in webmaps if str(m.get_data()).find(find_url) > -1]
# Create empty list to populate with results
map_list = []
# Check each web map for matches
for w in webmaps:
try:
# Get the JSON as a string
wdata2 = str(w.get_data())
criteria = [
wdata2.find(find_url) > -1, # Check if URL is directly referenced
any([wdata2.find(i) > -1 for i in matches]) # Check if any matching maps are in app
]
# If layer is referenced directly or indirectly, append map to list
if any(criteria):
map_list.append(w)
# Some apps don't have data, so we'll just skip them if they throw a TypeError
except:
continue
output = pd.DataFrame([{'title': m.title, 'id': m.id, 'type': m.type} for m in map_list])
arcpy.AddMessage(f"OUTPUT TABLE: \n \n {output}")
if search_type == 'Web Application':
arcpy.AddMessage("Searching for Web Applications. This could take a few minutes...")
# Pull list of all web apps in portal
arcpy.AddMessage("1")
webapps = gis.content.search('', item_type='Application', max_items=-1)
# Create empty list to populate with results
arcpy.AddMessage("2")
app_list = []
# Return subset of map IDs which contain the service URL we're looking for
arcpy.AddMessage("3")
matches = [a.id for a in webapps if str(a.get_data()).find(find_url) > -1]
# Check each web app for matches
arcpy.AddMessage("4")
for w in webapps:
try:
# Get the JSON as a string
wdata = str(w.get_data())
criteria = [
wdata.find(find_url) > -1, # Check if URL is directly referenced
any([wdata.find(i) > -1 for i in matches]) # Check if any matching maps are in app
]
# If layer is referenced directly or indirectly, append app to list
if any(criteria):
app_list.append(w)
# Some apps don't have data, so we'll just skip them if they throw a TypeError
except:
continue
output = pd.DataFrame([{'title':a.title, 'id':a.id, 'type':a.type} for a in app_list])
arcpy.AddMessage(f"OUTPUT TABLE: \n \n {output}") The tool does work. when searching for web maps, it takes less than a minute on average to run. The problem is if I use the option to search for web applications, it takes 3.5 hours to run. We are a pretty small organization with less than 500 items in our org, so that seems a bit excessive. Is there something I have done wrong in the code that could lead to this? Is there some way I can track what is causing this slow down? I'm very much a python journeyman, so implementing an error reporting method is outside my area of knowledge. Any help you can provide would be appreciated!
... View more
05-05-2023
04:52 AM
|
0
|
3
|
1428
|
|
POST
|
Katherine, Thank you for sharing this! It is very helpful! How long on average does it take for it to search for Web Applications for you? We have a relatively small AGOL org (<500 items) and yet it still took the tool 3.5 hours to run. The Web maps part finishes in less than a minute. I'm not sure if I've misconfigured something or if there is sosmething weird about our organization that I'm not aware of but this is a real head scratcher.
... View more
05-05-2023
04:20 AM
|
0
|
0
|
5366
|
|
POST
|
Hey, Just curious, but how long should it take this tool to run? We have a fairly small AGOL org with less than 500 items but the tool has been running for about 15 minutes so far. This is my second attempt at running it. I'm running it in the Python window and it appears to be running, but it is just bogged down somewhere.
... View more
05-04-2023
12:36 PM
|
0
|
1
|
7154
|
|
POST
|
Jonah, Are you referring to viewing the properties of "TaxParcels_Lines" or the parcel fabric? When I right click on "TaxParcel_Lines" there is no Parcel Fabric drop down menu. This is what I see: I can see that if I got to the properties of the Parcel Fabric control layer (Blue Icon in the feature dataset). This is what that shows:
... View more
05-02-2023
02:51 PM
|
0
|
0
|
1151
|
|
POST
|
The first error is as follows: It is saying it for every layer in the parcel fabric. I don't understand why I'm getting this error now because in the past, I have been able to publish the parcel fabric before with no issue. I'm not really sure what would have changed. I haven't altered the database owner, which seems to be what it is implying, but it is hard to be sure. The second error is this: The only layer it says is having this error is "TaxParcels_Lines". All of the other layers are apparently fine. This doesn't really make sense to me because our server is version 10.9.1 and our parcel fabric is version 5 which is compatible with Enterprise 10.9.1. I would appreciate any help that you can provide!
... View more
04-28-2023
07:42 AM
|
0
|
2
|
1257
|
|
POST
|
This ended up being the issue for us! I manually validated topology at large scales until I found the specific area that was leading to the area. When zooming into that area, there was a vortex of lines and points that had been created by some apparent bug. We had about 30k lines and points in an area the size of a football field. No clue what led to it, but deleting all of them and validating the topology again worked. Thank you!
... View more
04-28-2023
07:20 AM
|
0
|
0
|
3343
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 5 | a month ago | |
| 1 | 10-02-2024 07:04 AM | |
| 1 | 05-23-2024 02:54 PM | |
| 1 | 07-29-2025 01:09 PM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|