|
POST
|
What exactly is it you're trying to do? I dont normally see people using FeatureSet as output as FeatureClass usually is sufficient. If you're ultimately trying to make a GP Service, I'd just stick with FC for output, and FS for input. I dont know if this will help, but if you want to stick with FS as output, maybe try doing a load. For example
feature_class = "....the FC you've created..."
feature_set = arcpy.FeatureSet()
feature_set.load(feature_class)
... View more
05-29-2013
01:15 PM
|
0
|
0
|
4057
|
|
POST
|
Curry is an answer to a lot of problems...so is beer 🙂 Yeah... the parsing can be fairly restrictive, and thanks to cases like this that you and others have posted on the forums, or via submitted bugs, we've relaxed a lot of the parsing and find more data in 10.2 (next release). I appreciate you sticking with the process and providing feedback here. It's been helpful to us as we can make the software more usable. I think it might be me who owes the beers :). thanks, Mark.
... View more
05-29-2013
09:41 AM
|
0
|
0
|
2102
|
|
POST
|
Real quick shot in the dark.... try this... inpoint = arcpy.Point(arcpy.GetParameter(0), arcpy.GetParameter(1)) inpointgeo = arcpy.PointGeometry(inpoint) bufferradius = arcpy.GetParameter(2) snapoption = arcpy.GetParameter(3) lyrFlow = "Flowlines" lyrWater = "Waterbodies" if snapoption.upper() == "FL": layername = lyrFlow else: layername = lyrWater result = arcpy.SelectLayerByLocation_management(layername, "WITHIN_A_DISTANCE", inpointgeo, bufferradius, "NEW_SELECTION") Explanation - if theres 0 layers, during analyze/publish we didn't identify any data (layers) that need to be included. So that's for sure the issue. I'm thinking that because of the IF statement we didn't find the layers. But thats a hunch. If that doesn't work, I'm 99% sure this will: if snapoption.upper() == "FL": result = arcpy.SelectLayerByLocation_management("Flowlines", "WITHIN_A_DISTANCE", inpointgeo, bufferradius, "NEW_SELECTION") else: result = arcpy.SelectLayerByLocation_management("Waterbodies", "WITHIN_A_DISTANCE", inpointgeo, bufferradius, "NEW_SELECTION")
... View more
05-29-2013
08:39 AM
|
0
|
0
|
2102
|
|
POST
|
Hmmm... thinking out loud based on the last couple forum posts.... Would having an option on the tool, something like "override symbology / default symbology" (which would do something that Erin explained) be beneficial to many people? It seems the only time you would NOT want the icon embedded into the KMZ would be when you're creating KML specifically for google maps. I can't promise this change, but if theres enough interest its something we could consider for a future release.
... View more
05-17-2013
09:29 AM
|
0
|
0
|
1781
|
|
POST
|
Desktop Advanced level tools require Server Advanced. If you have Server Standard, you'll need to investigate up'ing the license level of Server to use that tool.
... View more
05-16-2013
01:55 PM
|
0
|
0
|
1179
|
|
POST
|
I'd use this http://www.arcgis.com/home/item.html?id=f3d91b8f852042e289e09a7ec8342431 We're actually putting those tools into the product at 10.2. So you can use the Excel to Table tool to take the Excel FILE, turn it into a table that ArcGIS Server supports and continue working on it in the service.
... View more
05-16-2013
12:55 PM
|
0
|
0
|
1428
|
|
POST
|
I'm not entirely sure about why you're getting that error, but can tell you that you can't use Excel tables with GP Services in 10.1. You can use excel as a FILE (there are Python modules which read excel FILES...) But ArcGIS Server cannot use Excel TABLES (the sheet you reference in your code with $). You'll have to replace the excel table, or access it with other Python modules as a file.
... View more
05-16-2013
10:12 AM
|
0
|
0
|
1428
|
|
POST
|
Based on the information your presented here and the bug that was logged, we now know its because of the path and its contents when you launch an IDE from ArcMap (right click on script > edit for example). If you launch the IDE by itself, the path is fine. When launched from ArcMap you'll see the 32bit path in the sys.path: c:\\program files (x86)\\arcgis\\desktop10.1\\bin As a hack, you could do this: import sys
sys.path.remove('c:\\program files (x86)\\arcgis\\desktop10.1\\bin')
import arcpy
#rest of your script Or if you're using an IDE that you set the Python interrupter, like WING for example, you can qualify which Python it should run against (like the 32bit one) Or using a 32bit IDE will work fine as well.
... View more
05-14-2013
11:54 AM
|
0
|
0
|
973
|
|
POST
|
Apologies, this is an issue that has been fixed in the upcoming 10.2 release. The last post in this thread has some things you can try which might get around the issue.
... View more
05-10-2013
12:21 PM
|
0
|
4
|
4229
|
|
POST
|
I'm running out of ideas.... Any chance your script is calling subprocess or multiprocess? That is, something in your script is making threads or other processes or even doing a os.command?
... View more
05-09-2013
12:33 PM
|
0
|
0
|
2371
|
|
POST
|
The arcgisscripting.pyd is the same file used in both Server and 64bit BG. Thats the error I suspected you were getting. Its 32bit trying to call into 64bit. Some wire, somewhere has been crossed and its trying to use the wrong libraries. Are you running a script tool out of process? If so, can you try running in process?
... View more
05-09-2013
12:17 PM
|
0
|
0
|
2371
|
|
POST
|
The two .PTH files are fine. 64bit BG and Server share 64bit Python. Whats the error you get while importing arcpy? It looks like you've done the sys.path print from the Python window in ArcMap? Heres the output of print sys.path in the Python window. Not quite the same as yours. >>> sys.path ['C:\\Python27\\ArcGISx6410.2', u'c:\\program files (x86)\\arcgis\\desktop10.2\\arcpy', 'C:\\QATest\\py\\pyharness', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\ArcGIS10.2\\Lib', 'C:\\Python27\\ArcGIS10.2\\DLLs', 'C:\\Python27\\ArcGIS10.2\\Lib\\lib-tk', 'c:\\gpServices\\Sanity\\queryLayer', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\bin', 'C:\\Python27\\ArcGIS10.2', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\arcpy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\ArcToolbox\\Scripts'] Do you have Python entries in your actual PATH environment variable? Do you have a PYTHONPATH environment variable pointing at something?
... View more
05-09-2013
10:07 AM
|
0
|
0
|
2371
|
|
POST
|
I want to step through your question 1 part at a time...(apologies if you know these details, they could be helpful to someone else) If you have your services set to 0 min instances, they'll use 0 memory. That is till the first time they're used. With your setup of min:0, max:8, if the service never used, it'll never start up, never consume memory. If its hardly used, then the only time it'll increase an instance is when an instance is busy serving someone else, a 2nd instance will start up. This is true till you hit 8 instances (7 busy instances, one more request, 8th spins up - after that, people wait to get a free instance). Note - this point is for High Isolation. Now you said you have 2 machines. And it sounds like they participate in the same cluster? So the numbers I threw at you above are all multiplied by 2. When that 1st request is made (assuming instances are at 0), a new instance will spin up on both machines. Remember, the wording here is key: Minimum number of instances per machine: 0 Maximum number of instances per machine: 8 "per machine", and you have 2 machines. Each instance will consume X* amount of memory. X* being dependent on the number of layers, features, etc inside the service. So the above would hold true for high isolation, but you've changed to low isolation. I'd start with this help topic if you haven't already read it. With low isolation a new instance doesn't get spun up for 1-8. Those max of 8 "instances" are all within 1 actual process. I personally dont have a lot of experience with low isolation map services, so I can't guess at the amount of memory they'd use. A good test would be to start a service in high isolation, with min:8 instances. Check the memory usage of the 8 instances on the machine. Go back, change to low isolation. You'll only have 1 instance, but whats the memory of that? Comparing these 2 might help you further size your machine. (Be sure to read the help topic though to understand the pros/cons of the different isolation methods) Just my 2cents - I think your min=0 approach is good if you need a large number of seldom used services. The help page linked above also explains time outs. The key point is here: A third timeout dictates the maximum time an idle instance can be kept running. When services go out of use, they are kept running on the server until another client needs the instance. A running instance that is not in use still consumes some memory on the server. You can minimize your number of running services and therefore conserve memory by shortening this idle timeout, the default of which is 1,800 seconds (30 minutes). The disadvantage of a short idle timeout is that when all running services time out, subsequent clients need to wait for new instances to be created. If your users can handle the startup time of a 0 instance service, then you can spin services up "on demand" and have them shut down when not in use (well, shut down not long after they've stopped being used). With all that in mind you'll probably have to do some 1 off scenarios to determine how many services are usually up at a given time. After that, see how much memory they're consuming. Adding another machine to the mix might be helpful (either included in the cluster, or it being its own independent server with X number of dedicated services to host). However if you determine you're running out of RAM, then an alternative might just be to increase RAM on the 2 boxes you already have. Don't get me wrong though, I'm not saying "go buy hardware" - I'm saying do some tests and see if you need to buy hardware. Your user load will probably determine how you need to proceed.
... View more
05-07-2013
08:15 AM
|
1
|
1
|
1252
|
|
POST
|
That is great information - if you get anything worthwhile, please share. I'm not sure how to begin replicating that process, so anything you get from this could be a clue.
... View more
04-24-2013
06:58 AM
|
0
|
0
|
4169
|
|
POST
|
Just for anyone else who comes upon this thread... Jeff and I posted a blog with the python script to: -CreateMapSDDraft, Analyze, Stage and Upload for map documents to be pushed to ArcGIS.com as a hosted feature service /w overwrite and shared to arcgis.com turned on. http://blogs.esri.com/esri/arcgis/2013/04/23/updating-arcgis-com-hosted-feature-services-with-python/
... View more
04-23-2013
08:29 AM
|
0
|
2
|
4228
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-25-2026 08:25 AM | |
| 1 | 09-29-2025 05:19 AM | |
| 2 | 09-20-2023 06:37 AM | |
| 1 | 09-18-2025 07:07 AM | |
| 3 | 09-18-2025 06:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-25-2026
08:04 AM
|