BLOG
|
Thank you so much this is exactly what i am looking for. i will give it a try. Happy holidays!
... View more
12-22-2017
03:45 PM
|
0
|
0
|
21175
|
BLOG
|
This works great however i have an issue with too many edits being made on a versioned database and it fails after a while. i have tried adding autocommit however it is not working in the loop. I am also not sure i wrote that correct. import arceditor import arcpy from time import strftime arcpy.env.workspace ="E:\\arcgisserver\\Resources\\Connections\\GIS_SCRIPTINGVS.sde" sourceFC="E:\\arcgisserver\\Resources\\ScriptingDB.gdb\\BISRV_BIPERCON" print "Start script: " + strftime("%Y-%m-%d %H:%M:%S") sourceFieldsList = ["BI_SRV_MAP_LOC","SRVADDR1","SRVADDR2","SRVST","SRVCITY","SRVZIP","BUSINESS","HOME","BICUST","MOBILE","BI_FORMAT_NAME","BI_FORMAT_ADDL_NAME","BI_KEY_CUST_CD","BI_ROUTE_CD","BI_OUT_PRI_CD","BI_MED_NEC_CD","BI_SRV_LOC","BI_AR_STAT","BI_ACCT", "BI_MTR_PHS", "BI_TRF_NBR", "BI_MTR_NBR"] edit = arcpy.da.Editor(arcpy.env.workspace) edit.startEditing(True, True) edit.startOperation() # Use list comprehension to build a dictionary from a da SearchCursor valueDict = {r[0]:(r[1:]) for r in arcpy.da.SearchCursor(sourceFC, sourceFieldsList)} updateFC = "E:\\arcgisserver\\Resources\\Connections\\GIS_SCRIPTINGVS.sde\\GIS.DBO.ELECTRIC\\GIS.DBO.ServicePoint" updateFieldsList = ["SERVICE_MAP_LOCATION","SERVICE_ADDRESS","SERVICE_ADDRESS2","STATE","CITY","Zip","BusinessPhone","PrimaryPhone","CustID","MobilePhone","NAME","MISC_CHAR_1","KeyAccount","MISC_CHAR_2","OutagePriority","MEDALERT","Service_Number","SERVICE_STATUS","Account_Number", "CISPhase","TRANSFORMER_ID","MeterNumber"] arcpy.env.autoCommit = "" with arcpy.da.UpdateCursor(updateFC, updateFieldsList) as updateRows: for updateRow in updateRows: # store the Join value of the row being updated in a keyValue variable keyValue = updateRow[0] # verify that the keyValue is in the Dictionary print keyValue if keyValue in valueDict: # transfer the values stored under the keyValue from the dictionary to the updated fields. for n in range (1,len(sourceFieldsList)): updateRow = valueDict[keyValue][n-1] updateRows.updateRow(updateRow) del valueDict arcpy.DeleteManagement("test") edit.stopOperation() print "edits complete" # Stop the edit session and save the changes edit.stopEditing(True) print "Finished script: " + strftime("%Y-%m-%d %H:%M:%S") print "Finished script: " + strftime("%Y-%m-%d %H:%M:%S") Any guidance would be greatly appreciated thanks!
... View more
12-22-2017
06:50 AM
|
0
|
0
|
21175
|
POST
|
The issue with basemap is probably because of credentials. you will want to add a basemap specifically for off-line use (you can search this on arcgis online) to your Basemaps Gallery Store AGOL Credential.
... View more
09-05-2017
07:10 AM
|
0
|
0
|
1372
|
POST
|
Yes, We have 6 concurrent standard licenses. It shows only 3 pro on authorizations. i know 3 have been set up for our license manger. i was thinking i should see 3 on AGOL yet but there are not any shown. I don't even see a chart that says pro authorization in AGOL.
... View more
08-28-2017
05:25 AM
|
0
|
1
|
1250
|
POST
|
Are you allowed to share maps and apps to everyone from your Portal, restricting the log in on the ArcGIS Server instead of Portal Login? If not, are you able to do this using Web App Developer? Or inserting the viewing map into a website?
... View more
08-21-2017
11:48 AM
|
0
|
1
|
1437
|
POST
|
i have also found that i had this issue specifically on features with joins. i had to remove the join.
... View more
07-13-2017
08:26 AM
|
0
|
0
|
696
|
IDEA
|
i have the same issue. i have a script that is set to list versions, then reconcile and delete. But all versions say to have children. i have a hard time telling if the version is still on the device and being used or if it was downloaded and removed without a sync.
... View more
07-13-2017
08:20 AM
|
2
|
1
|
2226
|
POST
|
Hi , Do you still have a code for this? this is exactly what i'm trying to do. Thank you in advance!!
... View more
04-12-2017
09:45 AM
|
0
|
7
|
1602
|
POST
|
you can enable symbol updating on the service in ArcGIS Manager. However, this is a bug with 10.4.1. The work around is to create a new mxd with your layers. and Create a new service. You cannot overwrite the service.
... View more
12-13-2016
09:47 AM
|
1
|
0
|
963
|
POST
|
so this is quite annoying but it worked. Enable symbology updating in service and move the feature to the top of the contents, save, back out and go in and configure.
... View more
11-28-2016
10:29 AM
|
1
|
2
|
963
|
POST
|
i found that removing the security in the server will allow you to configure the pop-up
... View more
11-28-2016
09:26 AM
|
1
|
0
|
963
|
Title | Kudos | Posted |
---|---|---|
2 | 12-05-2022 07:02 AM | |
2 | 03-30-2021 05:40 AM | |
1 | 05-10-2019 01:40 PM | |
1 | 08-04-2020 06:00 AM | |
1 | 04-22-2015 06:10 AM |
Online Status |
Offline
|
Date Last Visited |
08-06-2024
08:10 PM
|