| 
             
                POST		  
                
             
         | 
        
        
 
					
							     If the service is working as expected, its derived outputs should end up at an endpoint like: http://[nameofserver]/ArcGIS/rest/services/[NameOfGPToolBox]/GPServer/[NameOfGPScript]/jobs/[job-id]/results/[nameOfOutputParameter]    For a fully featured web application, you'd want to handle that URL and provide the user with a means of downloading from that location and 'hide' that url from the end user. For example a redirect to the download link, a button they can click on the website or something like that.   
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-28-2017
	
		
		02:31 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                1
             
         | 
        
             
                
                4
             
         | 
        
             
                
                    
                
                3321
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							      import time, math, sys
from datetime import datetime
map(id, [time, math, sys, datetime])
[48738160, 57747920, 47497264, 1699354320]
import arcpy
map(id, [time, math, sys, datetime])
[48738160, 57747920, 47497264, 57866672]   The only ID that changes is datetime, so I'm not sure if that's actually the case. But we can look further into it as well.    
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-28-2017
	
		
		12:11 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                0
             
         | 
        
             
                
                0
             
         | 
        
             
                
                    
                
                2093
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     Currently its logged on our internal version control system as a bug, but lower priority due to the workaround. I'll bring it up again at the next Python meeting. I figure it could be fairly problematic if arcpy is used mid-stream in a script that imports other complex packages.    
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-25-2017
	
		
		03:21 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                0
             
         | 
        
             
                
                14
             
         | 
        
             
                
                    
                
                3640
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     The reason dictionary keys must be cast to a tuple is because the keys must be hashable - since the items in a list can be added/deleted/swapped after instantiation it is considered 'mutable' meaning the values can be changed. A tuple is 'immutable', meaning that they can't be changed. Namedtuples are handy as keys in lots of cases.  A frozenset is another acceptable collection to use as a key.    These objects can only be used for keys if their contents are hashable objects as well (implements __hash__), if you define a class without that method, it can't be used in a key.    
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-11-2017
	
		
		11:51 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                1
             
         | 
        
             
                
                0
             
         | 
        
             
                
                    
                
                1641
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     We did evaluate adding more to the .condarc file but for every option there are potential edge cases which could be problematic, so figured it was a good idea to adhere to the minimal .condarc that comes with a base conda installation.    
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-10-2017
	
		
		12:08 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                1
             
         | 
        
             
                
                1
             
         | 
        
             
                
                    
                
                4343
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     The shortcut links to %ProInstall%/bin/Python/Scripts/proenv.bat - can you ensure this file is there and try to run it by double-clicking?   I can safely say the batch file works solidly in testing on 1.4.1 so it is likely a setting on your machine, but we can try to figure out which one!   
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-10-2017
	
		
		10:48 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                1
             
         | 
        
             
                
                1
             
         | 
        
             
                
                    
                
                2237
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     By chance are you importing arcpy in a executable context like this:   if __name__ == '__main__':
  import arcpy   Its a commonly suggested idiom to be able to run scripts from the command prompt, however it causes problems if run from within ArcGIS since 'arcpy' won't be defined in namespaces outside of the conditional. Its a shot in the dark but seems possible here.    
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-09-2017
	
		
		02:32 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                0
             
         | 
        
             
                
                0
             
         | 
        
             
                
                    
                
                324
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     Hi Santhosh,    Have you looked into the Excel To Table—Conversion toolbox | ArcGIS Desktop tool? It will allow you to get the data out of the excel sheets and into a gdb. Once that is done, you can use an UpdateCursor—Data Access module | ArcGIS Desktop  to loop through each row in the Table/FeatureClass and change the value as needed. Perhaps try the code samples from those docs to see how the tools work in Python.     I'm happy to help more, that's just somewhere to start.       
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-09-2017
	
		
		02:23 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                0
             
         | 
        
             
                
                0
             
         | 
        
             
                
                    
                
                1641
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     Hi Tobias,    You can edit the .condarc file in %ProInstall%/bin/Python to include more than the default channels/servers which are supported on a base installation, to install packages hosted on your servers. This should allow you to install the packages into Pro environments.     We are working on packaging arcpy for the next release of Pro to ensure it can be used anywhere on a system with the application installed. For now the workaround is ensuring the PATH (both sys.path and os.environ['PATH']) in your system conda install matches that in the Pro conda environments, which should provide arcpy with the binary files it needs to instantiate.    
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-09-2017
	
		
		09:36 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                2
             
         | 
        
             
                
                6
             
         | 
        
             
                
                    
                
                4343
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     The RasterClassifiedSymbology—Help | ArcGIS for Desktop arcpy.mapping class is probably what you are looking for.    
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-04-2017
	
		
		03:20 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                0
             
         | 
        
             
                
                3
             
         | 
        
             
                
                    
                
                1925
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     You can use arcpy.mapping to add and remove layers from a MapDocument using the following code:     import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd")
df = arcpy.mapping.ListDataFrames(mxd, "New Data Frame")[0]
layer = arcpy.mapping.Layer(r"C:\Project\Data\Orthophoto.lyr")
arcpy.mapping.AddLayer(df, layer, "BOTTOM")
arcpy.mapping.RemoveLayer(df, layer)     So you can create an MXD that is a template (set extent, layout etc), add the relevant layers to it, then use arcpy.mapping.PrintMap() PrintMap—Help | ArcGIS Desktop, remove the layers, add the next set and so on.     
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-04-2017
	
		
		03:15 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                1
             
         | 
        
             
                
                0
             
         | 
        
             
                
                    
                
                689
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     I believe the latest laptop Esri has been providing for Development/Testing is Precision 7510 Workstation Laptop | Dell United States or very similar. For public presentations its the Precision 17 Inch 7720 Mobile Workstation Laptop | Dell United States     
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-04-2017
	
		
		02:32 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                1
             
         | 
        
             
                
                0
             
         | 
        
             
                
                    
                
                3296
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     In the query the 'Field3' value gets replaced with the value within that column, for each row. So its checking if the value of the Field3 column matches any of those 3 strings and if so the row gets selected.    The join is just a python function on the String type (as you can see I'm defining a string inline: ', ' then calling the function .join() on it), concatenating the 3 strings from the list together, separated by a comma and space into a single string. This has to be done because the query is a single string.     If you used   fieldValue = '%45B%', '%46A%', '%47C%'
# ('%45B%', '%46A%', '%47C%')   It will work as well, but will give you a Tuple instead of a list. This works fine in the current situation, but if you had a script with variable fieldValues, a Tuple wouldn't work because the values within are not mutable - this is why I suggested the list.    Does that clear it up?   
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-04-2017
	
		
		01:19 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                2
             
         | 
        
             
                
                2
             
         | 
        
             
                
                    
                
                832
             
         | 
    
| 
             
                POST		  
                
             
         | 
        
        
 
					
							     In that case it would be appropriate to surround the three values in square brackets to create a list, because you have multiple strings and want to compare for each one of them.     fieldValues = ['%45B%', '%46A%', '%47C%']     Then you can use the SQL IN operator instead of LIKE in that case. The syntax would be:     query = "Field3 IN" + "(" + ', '.join(fieldValues) + ")"
# "Field3 IN ('%45B%', '%46A%', '%47C%')    
						
					
					... View more
				 
			
			
			
			
				
			
			
			
			
			
			
		
			
    
	
		
		
		08-04-2017
	
		
		12:12 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		          | 
        
             
                
                1
             
         | 
        
             
                
                4
             
         | 
        
             
                
                    
                
                5556
             
         | 
    
| Title | Kudos | Posted | 
|---|---|---|
| 1 | 11-23-2016 11:51 AM | |
| 1 | 12-27-2016 03:58 PM | |
| 1 | 11-28-2016 09:17 AM | |
| 1 | 12-08-2016 05:09 PM | |
| 1 | 12-28-2016 12:00 PM | 
| Online Status | 
					
			 
	
			
					Offline
				
		
 
		
				 | 
			
| Date Last Visited | 
					
			 
				
    
	
		
		
		11-11-2020
	
		
		02:25 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
			 
		
				 |