|
POST
|
Without seeing the JSON response of all the 200 requests, it's hard to know where it fails but the one that definitely jumps out is the 404 on the /arcgis/rest/info request. The the host for that request using port 6080? Is this a federated Server? Take a look at the JSON responses for the 200 responses and see what they say. We may want to focus on the 404 on line 46. Are there any errors in the logs?
... View more
10-03-2016
11:55 AM
|
0
|
0
|
3516
|
|
POST
|
Can you take a look at the network traffic using Fiddler or the Dev tools in your browser when connecting to Manager? I would think you'll be seeing an access denied or similar error.
... View more
10-03-2016
09:54 AM
|
0
|
0
|
3516
|
|
POST
|
What account are you using to run the Portal service? Is it an administrator on the machine?
... View more
10-03-2016
09:38 AM
|
0
|
0
|
1020
|
|
POST
|
If you opened ArcGIS Server Manager on the machine where ArcGIS Server is installed, are you able to reach it successfully? Can you also reach the Admin API on the machine as well?
... View more
10-03-2016
09:31 AM
|
0
|
0
|
3516
|
|
POST
|
Hey Rebecca, can you provide some background on what updates you're making to the feature classes within the FGDB that require you to stop the service? If you're updating the schema, have you looked into turning off schema locking for the map services? I'm trying to recall if GP services also have this setting. If it's data manipulations, then the service doesn't need to be stopped. You can update individual features or clear out the feature class and append all new records if it's a larger change.
... View more
09-30-2016
09:53 AM
|
0
|
1
|
1710
|
|
POST
|
The token isn't a header, it should be included in the body of the request. Include it within the data variable you're sending along with the request, (along with the add features JSON).
... View more
09-30-2016
09:42 AM
|
2
|
1
|
1536
|
|
POST
|
You need to submit the parameters of the request, (the token and the response format), within the body of the request rather than within the URL itself. Take a look at this sample. ... httpConn.request("POST", stopOrStartURL, params, headers) ...
... View more
09-29-2016
02:16 PM
|
1
|
0
|
1559
|
|
POST
|
If I submit a request with just the 'services' parameter for the filter, I get no results: If I include all of the default paramters, I do: Since you want the results from specific servers, what if you try to include the default parameters for the filter: {"codes":[], "processIds":[], "server": "*", "services": ["SampleWorldCities.MapServer"], "machines": "*"} But pass in the server name for the "server" value through the for loop. I'm not sure why errors unrelated to SampleWorldCities are returning, but that's a separate problem.
... View more
09-29-2016
12:13 PM
|
1
|
3
|
2673
|
|
POST
|
The publishing process should package up the .sde connection file and extract it to the Server directories. The path to the .sde file will also be updated within your script, so it'll be able to use the copied .sde connection to connect to the data.
... View more
09-28-2016
06:42 PM
|
1
|
1
|
4110
|
|
POST
|
Hm, the first thing I would try is using SetParameter instead of SetParameterAsText, (you're not really returning text after all, you'll be returning a feature class). Make sure the output parameter type is a feature class as well. Then, try to update the arcpy.SetParameter() line to return the OutTable variable instead of the name of the output data: arcpy.DeleteField_management("ThemesIndicators_1", ["IndCode"]) OutTable = os.path.join(arcpy.env.scratchGDB,"ThemesIndicators_2") arcpy.CopyFeatures_management(ThemesIndicators_1, OutTable) arcpy.SetParameter(0, OutTable) That way, you're making sure that the output of the script is pointing to the path to the data you're looking to return.
... View more
09-28-2016
06:39 PM
|
0
|
0
|
467
|
|
POST
|
Do you have the 64 bit version of the module on the Server machine? If not, then that's the problem. If you run the 64 bit version of IDLE and you can't import all of the modules used within your GP script, the GP service won't be able to import them either. Make sure that you have all of the 64 bit versions of the modules within your script on the Server machine.
... View more
09-28-2016
06:35 PM
|
0
|
1
|
3030
|
|
POST
|
There are two things you can do: 1) Set the scratch workspace environment variable to in_memory, and specifically set the path when it shouldn't go to "in_memory". This can be done by adding the follwoing line to your script: arcpy.env.scratchWorkspace = "in_memory" Whenever a GP tool runs, (and it's valid to write to in_memory), simply specify the name of the output and it'll write to the in_memory workspace. In the situation where writing to in_memory is not appropriate, (for example creating an .xls file), construct the path to that output using arcpy.env.scratchFolder: Eg. outTable = os.path.join(arcpy.env.scratchFolder,"GeoProfile.xls") 2) Construct the path for every output using arcpy.env.scratchFolder or arcpy.env.scratchGDB: outGeoProfile = os.path.join(arcpy.env.scratchGDB,"GeoProfile") By using arcpy.env.scratchGDB, arcpy.env.scratchFolder, and setting arcpy.env.scratchWorkspace to "in_memory", you ensure that regardless of the script running in ArcMap, or Server, you're writing to consistent locations specific to where you run it: arcpy.env.scratchGDB - Desktop - C:\Users\<user>\Documents\ArcGIS\scratch.gdb - Server - <jobs_directory>/<jobID>/scratch.gdb arcpy.env.scratchFolder - Desktop - C:\Users\<user>\Documents\ArcGIS\scratch - Server - <jobs_directory>/<jobID>/scratch "in_memory" can be treated the same as a file geodatabase.
... View more
09-26-2016
08:37 AM
|
0
|
0
|
3474
|
|
POST
|
I see, and where is GeoProfile going? What scratch workspace are you using? arcpy.Copy_management("ThemesIndicators_1", "GeoProfile") Do you have ArcMap on the Server machine, or can you reach the arcgisjobs directory using ArcMap ArcCatalog? You can check in the scratch geodatabase to see what's actually being written there. Making sure you use a "dynamic" scratch workspace for your outputs might be a good idea if you're not already so you know exactly where it's supposed to go. For example, construct the path to any data you want use arcpy.env.scratchFolder and arcpy.env.scratchGDB, (see my above post). There's also a chance that the published script, (the one in the arcgisinput file), has been modified during publishing time in a way that invalidates an output location. This was particularly true in earlier version of ArcGIS Server.
... View more
09-25-2016
03:44 PM
|
0
|
2
|
3474
|
|
POST
|
So "Geoprofile" is the Excel table? c:\arcgisserver\directories\arcgisjobs\geoprocessing_dev\airogeoprofile_roi_gpserver\j91533738840043b48bf730482226e32e\scratch\scratch.gdb\GeoProfile It's trying to write a to the scratch geodatabase, which won't work. I suggest you re-write the output location of the Excel file using the scratch folder: Eg. outTable = os.path.join(arcpy.env.scratchFolder,"GeoProfile.xls") That way, you ensure the Excel table will be written to a folder.
... View more
09-24-2016
03:06 PM
|
1
|
4
|
3474
|
|
POST
|
I'd say you can focus on the line mod = sys.modules[extant]. It says NoneType object has no attribute "modules" indicating that when you import sys, a NoneType object, ("None"), is returned. An easy way to test this is by running the python included with Server, importing sys, seeing what type of object it is, and then seeing what sys.modules gives you: If printing sys gives you None, that's where to start troubleshooting.
... View more
09-23-2016
03:41 PM
|
0
|
1
|
3002
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-28-2026 06:05 AM | |
| 1 | 08-26-2016 10:10 AM | |
| 2 | 02-22-2024 07:22 AM | |
| 1 | 06-07-2024 07:11 AM | |
| 4 | 12-12-2024 08:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-08-2026
07:43 AM
|