|
POST
|
They are not getting updated at all? Or they are not getting the right values when updated? Can you set some breakpoints around the if statement and see the behavior?
... View more
07-02-2018
11:08 AM
|
0
|
0
|
1004
|
|
POST
|
Looks like you are not limiting the rows you update with the update cursor. Near line 17 or so. You need to filter out the rows you want to modify with some logic. I am guessing that the ones you want to update have an RD_ID of null (None) or an empty string, if so you could just to an "if statement." for row in rows:
if row[0] is None or row[0] == "":
row[0] = 'CC%05d' %RD_ID
... View more
07-02-2018
09:25 AM
|
1
|
2
|
5251
|
|
POST
|
Okay, so we restored the sever from a snapshot to a point before the error was made. Then federated again.
... View more
06-29-2018
03:10 PM
|
0
|
0
|
20465
|
|
POST
|
Try casting it to an integer. int(x) parsing - How do I parse a string to a float or int in Python? - Stack Overflow
... View more
06-29-2018
11:02 AM
|
1
|
0
|
5251
|
|
POST
|
I have a update script for a table that a domain is based off of that does some thing like this. Please see the code snippet below. The main idea is to read in all the other values into a list and then get the max(). Once that is done increment form there... import arcpy
import os
import operator
domain_name = "T_LineSegment"
sde_path = r"xxxx"
gis_user = "xxxx"
master_table = "ARCFM8.T_LineSegment"
temp_domain_table = r"in_memory/temp_domain_table"
code_field = "code"
description_field = "description"
# add new domain codes
print "Updating domain codes..."
old_codes = []
with arcpy.da.SearchCursor(os.path.join(sde_path, master_table), ["GISDOMAINCODE", "OBJECTID"]) as search_cursor:
for row in search_cursor:
try:
old_codes.append(int(row[0]))
except TypeError:
if row[0] is not None and row[0] != "":
print "Error in domain code objectid: {}".format(row[1])
new_code = max(old_codes) + 1
with arcpy.da.UpdateCursor(os.path.join(sde_path, master_table), ["JUNCTIONLINECODE", "GISDOMAINCODE"]) \
as update_cursor:
for row in update_cursor:
if row[0] is not None or row[0] != "":
if row[1] is None or row[1] == "":
print "\tAdding new code {} for {}".format(str(new_code), row[0])
row[1] = new_code
new_code += 1
update_cursor.updateRow(row)
... View more
06-29-2018
09:35 AM
|
1
|
4
|
5251
|
|
POST
|
We are using ST_Geometry in oracle... But we may have to import a large number of features from a SDO_Geometry oracle system that has been used with Autodesk software. I was wondering: 1. What the ST and SDO stand for? ST = storage type, spatial type? SDO = spatial data object? 2. Suggested workflow for the conversion? Dump data with Autodesk dwg or shapefile and consume with esri? Is there a way to pull the data into ST_Geometry from SDO_Geometry at a database level? Thanks!
... View more
06-28-2018
04:04 PM
|
0
|
3
|
7106
|
|
POST
|
Thanks Jonathan. I understand that it would not fix services that already have been shared with portal. But when I share a new service from server manager to portal it should have the updated url, yes? Because it is still not working... My coworker (who has a lot more knowledge of portal then me) feels that there is no way to recover from this situation, and we just need to spin up a new server and config.
... View more
06-26-2018
05:59 PM
|
0
|
1
|
20462
|
|
POST
|
I tried the above steps and shared a new service but it does not seem to be updating the service urls
... View more
06-23-2018
11:46 AM
|
0
|
13
|
20465
|
|
POST
|
Manually edit the Portal's Federation with ArcGIS Server by going to the Portal Sharing Directory (/portal/sharing/rest) > Home > Portals > Self > Servers > Server ID > Update Server. 1. https://xxxxxxx/arcgis/sharing/rest 2. Portals>Self>Servers 3. Click on Server ID 4. Corrected URL, reentered Admin URL (required)
... View more
06-22-2018
03:55 PM
|
0
|
0
|
20462
|
|
POST
|
When I federated our portal install I entered the wrong url for the services. Is there a way to edit this with out un-federating the server?
... View more
06-22-2018
03:28 PM
|
2
|
16
|
29728
|
|
POST
|
Something like this? Untested code... http://pro.arcgis.com/en/pro-app/arcpy/data-access/updatecursor-class.htm https://www.tutorialspoint.com/python/string_split.htm Python IF...ELIF...ELSE Statements
import arcpy
feature_class_path =r"xxxx"
with arcpy.da.UpdateCursor(feature_class_path, ["NS_Address", "Address"]) as cursor:
for row in cursor:
row_parts = row.split(" ")
prefix = ""
if row_parts[0] == "N" or row_parts[0] == "S":
prefix = "NS_Address"
else:
prefix = "EW_Address"
row[1] = prefix + " " + row_parts[1] + " " + row_parts[2]
cursor.updateRow(row)
... View more
06-19-2018
09:17 AM
|
0
|
0
|
2106
|
|
POST
|
I am no expert... so, for what it is worth: We have Arc Enterprise all installed on one server (federated) and then a reverse proxy on a second server. We have dev, test, and prod. So, three servers for enterprise. Right now they are only used by our employees ( a few hundred people).
... View more
06-15-2018
12:49 PM
|
3
|
0
|
2726
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-04-2024 05:39 PM | |
| 1 | 07-30-2024 09:05 AM | |
| 1 | 07-08-2024 05:32 PM | |
| 1 | 03-20-2024 10:27 AM | |
| 6 | 03-13-2024 03:38 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-12-2025
11:02 AM
|