|
POST
|
Since it's off, can you access the web map viewer over http and add the service, (accessed via http as well)? Any updates to AGOL wouldn't affect mixed content issues, if that's what this turns out to be.
... View more
01-30-2017
01:18 PM
|
0
|
5
|
3635
|
|
POST
|
Ah, I see. Does the .vbs file get created in the scratch directory? How are you constructing the path to the output .vbs file within the script?
... View more
01-30-2017
01:13 PM
|
0
|
26
|
3032
|
|
POST
|
Check if the Require SSL setting is checked, (I can't recall the exact wording of it), under your My Organization > Security settings: Configure security settings—ArcGIS Online Help | ArcGIS If it's on, it may have been turned on for a reason, and turning it off may break existing webmaps if services in webmaps now go through HTTPS, and you access the webmaps over http.
... View more
01-30-2017
01:12 PM
|
1
|
7
|
3635
|
|
POST
|
This does seem like a pathing issue: folderName = r"S:\AGR\AGR-Shared\AGR-GIS\AGR_Data"
fileName = "Connection to cloud.agriculture.vermont.gov.sde"
filepath = r'S:\AGR\AGR-Shared\AGR-GIS\AGR_Data\AutoConnection to cloud.agriculture.vermont.gov.sde' The full file path in the filePath variable has an "Auto" in it, which seems out of place given your folderName and fileName variables.
... View more
01-30-2017
01:07 PM
|
0
|
0
|
3144
|
|
POST
|
Can you post a screenshot of the error? Are you accessing AGOL over http or https? It could be a mixed content issue, as I don't see any problems when I use http to access AGOL and use the http service URL: On the other hand, if I use https to access AGOL and http for the service URL, that introduces an mixed content issue, as you can't mix http and https: Some browsers allow you to ignore mixed content issues, but if you're accessing the webmap through https, try using http instead. Unfortunately, if your organization is SSL only, that means you can only access the web map viewer over https, and the Server site hosting the service doesn't appear to have SSL enabled.
... View more
01-30-2017
12:37 PM
|
1
|
9
|
3635
|
|
POST
|
The logs should give you a good indication of what's going on when the layers can't be accessed. Do you see any errors? It'd be interesting to see if they coincide with the recycling time of the service. A good tool to use would be ProcMon to see exactly what the problem is when the Server is trying to reach the data and can't. You'll likely need to use a lot of filters and clear out the ProcMon log every so often as it could grow quite large in size.
... View more
01-30-2017
12:18 PM
|
0
|
2
|
5123
|
|
POST
|
If you can do it through the UI, you can do it through Python. Taking a look at the network traffic, it looks like it updates the user level by using the following URL and parameters: https://<portal_host>/<context>/sharing/rest/portals/self/updateUserLevel and passes the following parameters: { "user": "<user_name>", "level": "<new_level>", "f": "json", "token": "<token>" } Then, it updates the user to be an appropriate role for the new level: https://<portal_host>/<context>/sharing/rest/portals/self/updateUserRole { "user": "<user_name>", "role": "<new_role>", "f": "json", "token": "<token>" } I'm not too sure if it's been included in the documentation or the Python API itself, though.
... View more
01-30-2017
11:39 AM
|
2
|
0
|
1866
|
|
POST
|
The "Completed script ChartTest" is printed after the .vbs script is run? Are you running Idle as the same user running the ArcGIS Server Windows service? I'd suggest you take a look at the Event Viewer to see if there are any errors there. Also, you can run ProcMon and set a filter for .vbs script to see if it's actually called on. I don't think it's a permission issue, as the .vbs script resides in the arcgisinput folder, which the ArcGIS Server account would have full access to. The online user doesn't need permission to that folder; the user needs permission to the service and the user running the service needs permissions to whatever is being processed within the service so running Idle as the same user that runs the ArcGIS Server Windows service may be a good test. Make sure you're not running Idle as an admin when you run the script, as I doubt the GP service would run with elevated permission.
... View more
01-30-2017
10:59 AM
|
0
|
28
|
3032
|
|
POST
|
import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Temp\Project.mxd")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
count = 0
for lyr in arcpy.mapping.ListLayers(mxd, "", df):
if count < 3:
count +=1
name = lyr.name
arcpy.FeatureClassToFeatureClass_conversion(lyr, r"C:\Temp", name + ".shp")
print "Finished Exporting"
del mxd, df, count, name Not sure why the original comment came out in a single line, but here it is posted correctly. First, you'd still list the layers in the data frame on line 5. You could find which are rasters by following the Layer documentation. The name = lyr.name is from that documentation as well, basically just getting the name of the layer from the TOC. The original question was how to get the first x layers, so in the example, a variable is set to 0 to act as a counter, then the loop starts through all layers, adding 1 to the counter as it loops through each layer. Once the number of layers gone through is less than 3, continue on to export the feature class. To process rasters, switch the arcpy.FeatureClassToFeatureClass toop with the arcpy.CopyRaster tool or whatever other tool you want to use: import arcpy, os
mxd = arcpy.mapping.MapDocument(r"C:\Temp\Project.mxd")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
for lyr in arcpy.mapping.ListLayers(mxd, "", df):
if lyr.isRaster():
name = lyr.name
outRaster = os.path.join(r"C:\Temp","{0}.tiff".format(name))
arcpy.CopyRaster_management(lyr, outRaster)
print "Finished Exporting" So line 4 loops through the layers, line 5 checks if it's of type Raster layer, line 6 gets the name of the layer from the TOC, line 7 uses the os.path.join function to construct the path to the output raster using the format function to create the output name, and line 8 runs the tool.
... View more
01-04-2017
05:04 PM
|
2
|
1
|
4489
|
|
POST
|
This sounds more appropriate for a GP service instead of the route widget. You can set up a model or script to accept input points, create a route, and append the route to an existing dataset. The dataset can be served as a map service which will automatically be updated when the GP service is run.
... View more
12-13-2016
10:54 AM
|
1
|
0
|
866
|
|
POST
|
Can you describe the problem a bit more? Only specific services fail to start or all of them? Is there any correlation to the source data location and which services fail to start? Are they query layers? If it only occurs for data coming from SDE, you'll need to take a look at Verbose or Debug logs and see which step it gets to when it stops spinning up, and compare that to a service that starts up successfully. I know you mentioned that resources aren't the problem, but how much RAM is on the machine, and how much of it is free when the problem happens? What about the page file size? Perhaps setting up PerfMon to capture that information and seeing what those values are when the problem happens is a good way to eliminate hardware issues. If you think it may be a problem with the source of the data, you can also run an SDEINTERCEPT to see if there is a call or calls that take a long time.
... View more
12-13-2016
10:52 AM
|
0
|
0
|
3625
|
|
POST
|
I downloaded the .exe and ran through the setup wizard. It created the folders the OP described, so it sounds like the OP did the same thing. Not sure if the installer is funny or there are other steps required.
... View more
12-13-2016
10:48 AM
|
0
|
3
|
2521
|
|
POST
|
Hey Royce, yes I am. I'll send you a message. I won't be able to do much troubleshooting from my end, so it may be best to reach out to Technical Support.
... View more
12-13-2016
10:39 AM
|
0
|
1
|
3058
|
|
POST
|
Hm, to be honest, I don't really understand how that module installs. Perhaps someone else with more knowledge on it can help out. After installing, I was expecting to see a cx_oracle folder, (or something to that effect), with the associated scripts, (_init_.py, etc) in it.
... View more
12-13-2016
10:37 AM
|
0
|
0
|
2521
|
|
POST
|
Sorry for the late reply. Does it matter if you go through 6443, or is that what you're doing already? I think it may be best to reach out to Technical Support so they can take a closer look at the setup and see what could be wrong.
... View more
12-13-2016
10:36 AM
|
0
|
0
|
7269
|
| 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
|