|
POST
|
Mike, Have looked at your web Adapter "ags" in IIS. Below is a screenshot from my sandbox deployment with three web adapters installed (image, portal and server). When you installed the webadapter, did you install it to the Default website running on port 443 and is HTTPS enabled for the site? Any firewalls or AVPs running on the system? Can you open just the default https://localhost or http://localhost? You should get a screen like the following. If not, is IIS running on the system
... View more
07-19-2019
11:57 AM
|
0
|
0
|
4439
|
|
POST
|
Thomas, Take a look at the recent post How to get hot keys to work in ArcGIS Pro or ArcGIS Pro - Create Custom Toolbars and Hotkeys.
... View more
07-19-2019
11:40 AM
|
0
|
2
|
5232
|
|
POST
|
Mike, 1) The error is not certificate related as you would be getting an appropriate warning. The error message indicated the browser cannot resolve "https://localhost". Try just to ping localhost and see what response you are getting. Try and connect to http://localhost or https://localhost, you should get the default IIS screen. 2) Have you enabled HTTPS? Try using HTTP 3) Are you running DNS? If so, try and access the web server using the FQDN such at https://myserver.domain.com/webAdapterName/webadapter 4) you can also try accessing using the IP address of your web server https://192.168.xxx.xxx/webAdapterName/webadapter 5) Also, remember the webadaptor is only accessible from the system which it is hosted on. You cannot access it from other systems but this typically notifies you of the issue.
... View more
07-19-2019
11:11 AM
|
1
|
2
|
4439
|
|
POST
|
Maxime Demers, This is an older thread but I use a different approach for exporting an enterprise DB to a GDB using replicas. It is fast and simple. If the GDB already exists the script will sync the changes otherwise it creates a new copy. You can modify the items contained in the featureData list if you only want portions of the database exported. This does require a Standard (ArcEditor) or Advanced (ArcInfo) license. Create Replica | ArcGIS Desktop Synchronize Changes | ArcGIS Desktop Working with geodatabase replicas | ArcGIS Desktop #!/usr/bin/env python
import sys; sys.dont_write_bytecode = True
import arcpy
sde = r'Database Connections/[email protected]'
gdb = r'\\server\path\GDBexport.gdb'
rName = r'SDE_GDB'
def buildReplica(folderPath,outputFile):
arcpy.CreateFileGDB_management(folderPath, outputFile, "CURRENT")
myWorkSpace = arcpy.env.workspace = sde
featureData = arcpy.ListDatasets()
arcpy.CreateReplica_management(featureData, 'ONE_WAY_REPLICA',gdb,rName,'FULL','CHILD_DATA_SENDER','USE_DEFAULTS','DO_NOT_REUSE','GET_RELATED', '','DO_NOT_USE_ARCHIVING')
def syncReplica():
arcpy.SynchronizeChanges_management(sde,rName,gdb,'FROM_GEODATABASE1_TO_2','IN_FAVOR_OF_GDB1','BY_OBJECT','')
def main():
try:
if os.path.exists(gdb):
syncReplica()
else:
buildReplica(r'\\server\path','GDBexport.gdb')
except Exception, e:
sys.exit("Error in processing File")
if __name__ == '__main__':
main()
... View more
07-18-2019
09:43 AM
|
5
|
0
|
8604
|
|
POST
|
Brian Mainor, 1) Click Reply 2) At the top, click "Use advanced editor" 3) Once you do this there will be an option at the bottom to attach a file.
... View more
07-17-2019
11:47 AM
|
0
|
0
|
2721
|
|
POST
|
Anthony Von Moos To edit AGOL data in ArcMap: Add the feature service containing the data you want to edit in ArcMap using the "Add Data from ArcGIS Online" option In your Table of Contents, right click on the feature service and select Edit Features > Create Local Copy for Editing Edit the data as you would typically in ArcMap, save your edits and quit editing Right click on the feature service again and this time select Edit Features > Synchronize Local Edits with Server
... View more
07-17-2019
09:09 AM
|
0
|
0
|
2279
|
|
POST
|
Richard, Try adding the following code as the first two lines in your scripts even before your other import statements. This will prevent the pyc files from being generated. import sys
sys.dont_write_bytecode = True You will need to delete the pyc files if they have already been created but the script will no longer generate new pyc files. There may still be issues with the modules you are importing, try adding these two lines to these as well.
... View more
07-17-2019
04:10 AM
|
0
|
0
|
8850
|
|
POST
|
Anthony, There are many ways you can do this. You can edit the table manually on AGOL, or using ArcGIS Desktop or Pro you can republish an updated table you can run a script to update the table in its entirety or individual rows and fields. Can you please elaborate more on what you are trying to do, how you would like to accomplish the task and what you have tried so far or where you are having problems?
... View more
07-16-2019
04:59 PM
|
1
|
2
|
2279
|
|
POST
|
I needed to be quicker to get a reply in ahead you when it is a Python question. How’s retirement?
... View more
07-16-2019
04:31 PM
|
0
|
1
|
1806
|
|
POST
|
Steven, I formatted your code to be a little easier to read. import arcpy, os
arcpy.AddMessage("\n\n" + "Re-source MXDs was developed by Carl Beyerhelm, modified by Steve Kovach" + "\n")
mxdFolder = arcpy.GetParameterAsText(0) ## The project MXD folder
oldFolder = arcpy.GetParameterAsText(1) ## The archived data folder path
newFolder = arcpy.GetParameterAsText(2) ## The current data folder path
arcpy.env.workspace = mxdFolder
mxdList = arcpy.ListFiles("*.mxd") ## Get a list of the MXDs
for mxd in mxdList: ## For each MXD
arcpy.AddMessage("\n" + "Re-sourcing " + mxd + "...")
mapDoc = arcpy.mapping.MapDocument(os.path.join(mxdFolder, mxd)) ## Get the mapDoc object
mapDoc.findAndReplaceWorkspacePaths(oldFolder, newFolder, True) ## Replace the obsolete path with the new path
mapDoc.save() ## Save the updated MXD
del mapDoc ## Release the mapDoc object
arcpy.AddMessage("\n\n" + "OK, done!" + "\n\n") You need to use the variable names oldFolder and newFolder alone in line 15 above not as raw strings.
... View more
07-16-2019
04:16 PM
|
1
|
3
|
1806
|
|
POST
|
Brian, My comment on str() statements also applies to your float() statements. If the valve passed to the function is a float type you do not need to include a float() statement. You only need to use float() or str() when you are changing the type. Not knowing your data types, I could not make revisions but made an assumption on [Name] being a string. You are using both in your code for example float([Benzene1]) and str([Benzene1]). If [Benzene1] is a string you will need to use the float() when needed Likewise, if [Benzene1] is a float you will need to use the str() when needed. Another item to check is does your data have any NULL data or blank fields. Your code does not handle these values and would result in the data not displaying. If you want to upload your data in a shapefile or table, I can take a look at it. I was thinking you were working in desktop not pro, not that that makes a too big a difference.
... View more
07-16-2019
02:10 PM
|
0
|
3
|
2721
|
|
POST
|
Brian, I did have one typo in the previous reply but you should have got an error when you clicked Verify. I have edited it since. Take a few steps back and start with the following and build from there. Also, watch your variable types. I assume [Name] is a string so you do not need str([Name]). Depending upon your system you may need "\r\n" for a new line not just "\n". def FindLabel([Name],[Benzene1],[Toluene1],[Ethylbenzene1],[Xylenes1]):
out = ""
out += "<UND><BLD>" + [Name] + "</BOL></UND>\n"
return out
... View more
07-16-2019
12:40 PM
|
2
|
0
|
2721
|
|
POST
|
Andrew, What is the data type on flash_area? Your script does not like the value 1000000000 in the first row with a NULL.
... View more
07-16-2019
12:21 PM
|
0
|
1
|
8440
|
|
POST
|
Try This... def FindLabel ( [Name],[Benzene1],[Toluene1],[Ethylbenzene1],[Xylenes1] ):
out = ""
out += "<UND><BOL>"+str([Name])+"</BOL></UND>\n"
if float([Benzene1]) > 20000.0:
#bold
out += "<BOL>B: "+ str([Benzene1]) +"</BOL>\n"
else:
#normal
out += "B: "+ str([Benzene1]) +"\n"
if float([Toluene1]) > 10000.0:
#bold
out += "<BOL>T: "+ str([Toluene1]) +"</BOL>\n"
else:
#normal
out += "T: "+ str([Toluene1]) +"\n"
if float([Ethylbenzene1]) > 15000.0:
#bold
out += "<BOL>E: "+ str([Ethylbenzene1]) +"</BOL>\n"
else:
#normal
out += "E: "+ str([Ethylbenzene1]) +"\n"
if float([Xylenes1]) > 12000.0:
#bold
out += "<BOL>X: "+ str([Xylenes1]) +"</BOL>\n"
else:
#normal
out += "X: "+ str([Xylenes1]) +"\n"
return out
... View more
07-16-2019
12:12 PM
|
2
|
2
|
2721
|
|
POST
|
Joe, I had this same question. I attached a PDF list I got from ESRI that is dated June 2018. It has most of the symbols but there are a few newer on the latest release to AGOL.
... View more
07-16-2019
11:54 AM
|
3
|
0
|
17710
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 05-14-2026 11:47 AM | |
| 3 | 05-14-2026 12:23 PM | |
| 1 | 09-16-2019 05:49 PM | |
| 1 | 06-11-2025 03:32 PM | |
| 1 | 12-26-2023 09:15 AM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|