|
POST
|
I had this same issue. I was developing the schema in an FGDB, and I assumed you could simply copy and paste the feature class over to SDE and the domains would transfer over as this way would work with ArcMap. For a workaround, I did the following steps: - Export new schema to XML workspace document with data included - Import XML workspace document into SDE, this will also transfer over the domains - If you are trying to get a new schema into a feature dataset, you will need to copy and paste the source feature class as a standalone FC into SDE, then again copy and paste that FC into the feature dataset, it will have a name like _1 at the end. Delete the standalone feature class, then rename the feature class in the feature dataset by removing the _1.
... View more
06-11-2020
02:15 PM
|
4
|
0
|
4954
|
|
POST
|
We are using branch versioning for the first time in an SDE database (SQL Server 2016). For our existing traditional versioning DBs, we use the recommended compress, rebuild indexes, and analyze datasets in our nightly routines similar to ESRI documentation below. This methodology is not recommended with branch versioning, however. Is anyone using certain GP tools on a regular basis for database maintenance for an SDE database that uses branch versioning? If so, what methods are you using? Do branch versioned DBs require daily maintenance as traditional versioned DBs require? Enterprise geodatabase maintenance tasks—Manage geodatabases in SQL Server | Documentation
... View more
05-11-2020
08:49 AM
|
4
|
3
|
2353
|
|
POST
|
Trying to start/stop specific services. Using the article at How To: Stop GIS services using ArcGIS API for Python, I tried using the code but keep receiving an error message below posted code. I am running this script in IDLE (ArcGIS Pro). Using just IDLE for ArcGIS Desktop did not have the necessary modules. from arcgis.gis import GIS
import arcgis.gis.admin
gis = GIS("https://url.to.com/portal", "Username", "Password", verify_cert=False)
services = gis_servers.services.list()
#To stop specific service(s)
for service in services:
for service in server.services.list():
if service.properties.serviceName == "SampleWorldCities":
service.stop() Error Message: Traceback (most recent call last): File "Z:\Temp\Brian\test.py", line 5, in <module> services = gis_servers.services.list() NameError: name 'gis_servers' is not defined
... View more
01-08-2020
08:58 AM
|
1
|
8
|
7074
|
|
POST
|
We have a routine that uses the SDE admin connection to disconnect users from several databases nightly. Randomly, this python routine will occasionally fail with the error message below. Connection information provided was for a non-administrative user There is not any more information provided by the reports. My first guess was a permission issue like this post https://community.esri.com/thread/89448 . We are using a general SQL service account to run routines, but permissions should not explain why it fails randomly and is successful at other times.
... View more
11-13-2019
08:13 AM
|
1
|
0
|
867
|
|
POST
|
Thanks, Xander, For the exact feature class name, is that the entire connection string, or feature class name itself? Also, the tax lot feature class resides in a separate database than the address points.
... View more
08-28-2019
12:52 PM
|
0
|
1
|
1877
|
|
POST
|
Being new to Arcade and Attribute rules, I am trying to put in place a rule that populates a tax lot ID number on an address point upon insert or update. The error I receive comes from line 6 at the bottom of the thread. ERROR 002717: Invalid Arcade expression, Arcade error: Table not found WC Tax Lots What I am having trouble connecting the dots is how to grab the TLNO from the tax lot polygon and assign it to the TLNO GIS field in the address point feature class. In my Contents, the tax lot layer is titled as WC Tax Lots as it is in the code below. I received the code sample from GitHub - Esri/arcade-expressions: ArcGIS Arcade expression templates for all supported profiles in the ArcGIS platform. // Value to copy from the intersected feature
var intersecting_field = "TLNO GIS";
//Field rule is assigned to in the Attribute Rule
var feature_field = "TLNO";
// Create feature set to the intersecting class using the GDB Name
var intersecting_featset = FeatureSetByName($datastore, "WC Tax Lots", [intersecting_field], true);
// Intersect the edited feature with the feature set and retrieve the first feature
var intersected_feature = First(Intersects(intersecting_featset, $feature));
// Check to make sure there was an intersected feature, if not, return the original value
if (intersected_feature == null)
{
return $feature[feature_field];
}
// If the intersected feature is null, return the original value
if (IsEmpty(intersected_feature.valueToCopy))
{
return $feature[feature_field];
}
// Return the intersected features value
return intersected_feature[intersecting_field];
... View more
08-28-2019
10:49 AM
|
0
|
3
|
2196
|
|
POST
|
Hi Rachel, The data frame coordinate system in both MXDs and coordinate system of the geometric network both match after looking at the properties.
... View more
07-24-2019
08:39 AM
|
0
|
2
|
2294
|
|
POST
|
We are having an issue for one of our users editing in a geometric network. Several geometric network editing toolbar buttons are not available for use. This error does not occur when I open the same MXD. Both the user and I are on ArcGIS Desktop 10.6.1 Advanced License on Windows 10. When I open the MXD, all tools are available: When the user opens the MXD, all buttons besides connect and disconnect are greyed out: We have verified that the only 1 feature (the one intended to be edited) was selected on both computers.
... View more
07-24-2019
08:18 AM
|
0
|
4
|
2657
|
|
POST
|
After troubleshooting with: - a series of compresses, rebuild indexes and analyze datasets ran manually - Two nights of automated compress, rebuild and analyze Python routines - Recreate replicas with a different ID I still have lingering SDE states in the SDE_States table. When running a query for all records in the table, I receive:
... View more
06-28-2019
09:43 AM
|
0
|
2
|
1547
|
|
POST
|
I have had this problem as well. I make a feature layer without a definition query, then use the feature layer and use the Select by Attributes tool is where I put in the date query, then calculate field.
... View more
06-24-2019
03:21 PM
|
0
|
0
|
1065
|
|
POST
|
I should say if the first database connection does not contain the layer to reference to, but the layer is in the next database.
... View more
06-20-2019
12:10 PM
|
0
|
2
|
2378
|
|
POST
|
Thanks, Jake, That worked for one data source, unfortunately, I have 3 databases referenced in the MXDs. Is there an 'if else' statement to point it towards the next database if the first one does not work?
... View more
06-20-2019
12:06 PM
|
0
|
3
|
2378
|
|
POST
|
We are changing our production server to have a prefix of 'HV'. I have a folder of MXDs I would like to update to the new server, but I am missing something from my code below. I got my start from https://gist.github.com/davehorsey/d8892b150e61d2e03617. import arcpy, os
path = r"C:\layouts"
for fileName in os.listdir (path):
basename, extension = os.path.splitext(fileName)
# select MXD files that do NOT begin with "Copy_of_" - this
# prevents the script from updating files that have already been updated
if (extension == ".mxd") and (fileName[:8] != "Copy_of_"):
fullPath = os.path.join(path, fileName)
mxd = arcpy.mapping.MapDocument(fullPath)
print fullPath
# update data sources
mxd.findAndReplaceWorkspacePaths("Database Connections\\Server Database NT Auth.sde", "Database Connections\\HV_Server Database NT Auth.sde")
print "\tUpdated: SDE data sources"
# check for broken links
brknList = arcpy.mapping.ListBrokenDataSources(mxd)
for brknItem in brknList:
print "\tCheck: " + brknItem.name + " data source broken"
if not brknList:
print "\tCheck: no broken data sources"
# save a copy of the MXD
saveACopy_filename = "Copy_of_" + fileName
saveACopy_fullpath = os.path.join(path, saveACopy_filename)
mxd.saveACopy(saveACopy_fullpath)
print "\tSaved: " + saveACopy_filename
del mxd
# delete the original MXD
arcpy.Delete_management(fullPath)
print "\tDeleted: " + fullPath
... View more
06-20-2019
11:40 AM
|
0
|
5
|
2513
|
|
POST
|
When using the Apply Symbology From Layer file in Pro via Model Builder, it will revert the labels back prior to any changes I have made. I have updated the layer file (.lyrx) that it references too, but does not seem to stick as it does in ArcMap with a Layer (.lyr) file.
... View more
05-22-2019
08:49 AM
|
0
|
0
|
784
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | yesterday | |
| 2 | Wednesday | |
| 1 | Tuesday | |
| 2 | Friday | |
| 5 | a week ago |
| Online Status |
Online
|
| Date Last Visited |
5 hours ago
|