|
POST
|
A NameError means that you haven't defined a variable before calling it. In this case, you defined the list of field names on line 8 as "fieldnames" not "field_names". Also look into formatting your code correctly: import arcpy
for blah in blah:
print("hi")
... View more
03-07-2017
09:05 AM
|
1
|
2
|
3860
|
|
POST
|
I'd say your biggest concern should be administration and maintenance of the server, outside of Esri software. If the company that will be setting up the Linux machine won't be providing maintenance after it's up and running, that responsibility rests on you or your IT staff. If experience in Linux within your company is lacking, then it may be difficult if problems were to come up. On the software side, support for Esri products on Linux is on par with support for Windows and has been for the past number of releases. However, if it's determined that the problem is more on the OS, typically someone from the company's IT staff needs to be involved to address those problems, and that may exceed the scope of support that Support Services can provide.
... View more
03-02-2017
04:03 PM
|
1
|
1
|
1292
|
|
POST
|
Your browser is converting the time values to UTC, I believe. Take a look at a few of these links as they may provide some guidance: Specify TimeZone for popups/attributes in arcgisonline maps Troubleshoot—ArcGIS Online Help | ArcGIS Editor tracking for feature services—Documentation | ArcGIS Enterprise Set map service properties—Documentation | ArcGIS Enterprise The general idea is that the data is stored in local time, but the browser is converting to UTC so you'll see that discrepancy.
... View more
03-02-2017
02:45 PM
|
2
|
2
|
1752
|
|
POST
|
Yes, you can use a certificate issued by any certifying authority on the LB and leave the self signed certificate on 6443. You don't need to match the certificates.
... View more
03-02-2017
02:37 PM
|
1
|
0
|
1535
|
|
POST
|
If you remote into the machine as the user running the ArcGIS Server service and you're able to reach that URL, then there's no reason why it's inaccessible when running the GP service, as the traffic is essentially identical. The user running the ArcGIS Server service will be making connections to any services you're trying to access within the GP task. If your production environment is more locked down in a way that prohibits outbound connections, then that's likely your problem. If you are able to run Fiddler on that machine as the same user running the ArcGIS Server Windows service, that's just another way to see what outbound requests are being made.
... View more
03-02-2017
02:34 PM
|
0
|
0
|
1253
|
|
POST
|
It sounds like the Server machine can't make outbound requests to external resources. This could be an outbound proxy issue or something else. Have you been able to reach the service URL when you remote into the Server machine as the user running the ArcGIS Server Windows service?
... View more
02-28-2017
09:01 AM
|
0
|
3
|
3292
|
|
POST
|
What error do you get? If you're using a print service from a federated server, take a look at the logs on that machine. If that's the case, if you were to remote into the Server machine as the user running the ArcGIS Server Windows service, are you able to reach the Services URL of the service you're trying to print?
... View more
02-27-2017
10:04 AM
|
0
|
7
|
3292
|
|
POST
|
So it appears that IIS is working on HTTP and HTTPS without any authentication challenges, which was the first hurdle. Now you need to decide what you want in the front of the Server. The Web Adaptor is essentially a reverse proxy/load balancer. This sends traffic from 80/443 to 6080/6443. You can also use your own reverse proxy to send traffic from 80/443 to 6080/6443. Currently, it doesn't seem like you have anything in place to connect your front end web server to your back end ArcGIS Server. You've also exposed the Server directories, (it appears some install files and directories), to the public. This is a pretty big problem. I strongly suggest you disable directory browsing on the stateparkmap.okstate.edu Web Site, delete the ArcGISServer directory from your inetpub folder, and work with your IT staff on best practices for web servers.
... View more
02-24-2017
12:41 PM
|
3
|
1
|
5476
|
|
POST
|
Do you have the web adaptor installed? If so, have you installed it in the Default Web Site or your new web site? Your Default Web Site is stopped so if you're using the Web Adaptor you'll need to check where you installed it and reinstall it in your stateparkmap.okstate.edu website if it's not installed there.
... View more
02-24-2017
11:30 AM
|
0
|
1
|
5476
|
|
POST
|
In addition to Rebecca Strauch, GISP comments on dropping 6080, (you likely don't expose 6080 outside of your network), it appears that you have Windows Authentication enabled on the web site, given the 401 that's returned when reaching your services URL. Even going as far back as simply the hostname and domain returns the 401, (http://stateparkmap.okstate.edu), again, indicating you have Windows Authentication enabled on the web site. If you plan to provide people external to your network access to your services, you should not enable Windows Authentication on the external endpoints. If you want IWA internally, register another web adaptor and configure it with IWA.
... View more
02-23-2017
05:18 PM
|
2
|
0
|
5476
|
|
POST
|
It sounds like his suggestion is to have pre-created PDF files that can be retrieved on disk instead of generating them on the fly. From your description, it sounds like that may work.
... View more
02-23-2017
02:05 PM
|
0
|
0
|
1783
|
|
POST
|
Since it's going into the else block, (line 777 in the original script on github), what I would do is print the results of the analysis: Ex. arcpy.AddMessage(analyseDraft) This is a simple way to see why it's reaching that else block. It looks like the analyseServiceDraft is already going through the messages within the analysis starting on lines 1178, so from your output, it doesn't seem like there are any error messages. def analyseServiceDraft(draftXml, service):
analysis = {}
try:
# Analyze the service definition draft
analysis = arcpy.mapping.AnalyzeForSD(draftXml)
# Print errors, warnings, and messages returned from the analysis
count = 0
mess = " The following information was returned during analysis of the MXD: "
for key in ('messages', 'warnings', 'errors'):
mess = mess + "\n " + key.upper() + ":"
vars = analysis[key]
mess2 = ""
for ((message, code), layerlist) in vars.iteritems():
mess2 = mess2 + "\n - " + message + " (CODE %i)" % code
mess2 = mess2 + " applies to:"
for layer in layerlist:
count = count + 1
mess2 = mess2 + "\n " + str(count) + " : "+ layer.name
mess = mess + mess2
if analysis['errors'] != {}:
analysis['errors'] = mess
arcpy.AddMessage(mess)
return analysis
# if the sddraft analysis fails
except:
#Service Definition Draft could not be analyzed
analysis['errors'] = "NO"
return analysis
... View more
02-23-2017
02:03 PM
|
2
|
1
|
2865
|
|
POST
|
It looks like it's writing the errors to a text file: ...
# if the sddraft analysis contained errors
else:
#Service Definition Draft could not be analyzed
if analyseDraft['errors'] == "NO":
arcpy.AddWarning(" Service Definition Draft could not be analyzed.")
content = "\n " + formatDate() + "\n Service Definition Draft could not be analyzed. \n - " + finalServiceName + "\n"
serviceFailureNumber = serviceFailureNumber + 1
writeTxtFile(False, content, serviceFailureNumber, content1, workspace)
#writeInDatabase(fromServerName, toServerName, serviceType, finalServiceName, service, user, sources, 'Service Definition Draft could not be analyzed.')
else:
arcpy.AddWarning(" Service could not be published because errors were found during analysis. ")
content = "\n " + formatDate() + "\n Service could not be published because errors were found during analysis. \n " + str(analyseDraft['errors']) + "\n - " + finalServiceName + "\n"
serviceFailureNumber = serviceFailureNumber + 1
writeTxtFile(False, content, serviceFailureNumber, content1, workspace) You can add what's stored in the content variable to the AddWarning message: ...
# if the sddraft analysis contained errors
else:
#Service Definition Draft could not be analyzed
if analyseDraft['errors'] == "NO":
arcpy.AddWarning(" Service Definition Draft could not be analyzed.")
content = "\n " + formatDate() + "\n Service Definition Draft could not be analyzed. \n - " + finalServiceName + "\n"
serviceFailureNumber = serviceFailureNumber + 1
writeTxtFile(False, content, serviceFailureNumber, content1, workspace)
#writeInDatabase(fromServerName, toServerName, serviceType, finalServiceName, service, user, sources, 'Service Definition Draft could not be analyzed.')
else:
#Include the results of the analysis within the message
messageContent = "Service could not be published because errors were found during analysis. \n " + str(analyseDraft['errors']) + "\n - " + finalServiceName + "\n"
#Add the message to the tool
arcpy.AddWarning(messageContent)
content = "\n " + formatDate() + "\n Service could not be published because errors were found during analysis. \n " + str(analyseDraft['errors']) + "\n - " + finalServiceName + "\n"
serviceFailureNumber = serviceFailureNumber + 1
writeTxtFile(False, content, serviceFailureNumber, content1, workspace) This way, it prints the message but also writes to the file created by the createTxtFile function, (whatever the "workspace" variable is defined to, which appears to be the sysTemp folder path).
... View more
02-22-2017
12:33 PM
|
0
|
5
|
2865
|
|
POST
|
You can set the service to draw dynamically and see if both layers show up. If they do, then it's a problem with the caching tools. If they don't then that's the reason why they don't show up in the cache. Once you can determine if it's a problem with Serve drawing the data, (either when displayed dynamically or when creating the tiles), the logs should be able to give you an idea of whats wrong.
... View more
02-22-2017
10:10 AM
|
1
|
1
|
1794
|
|
POST
|
Do you mean the output PDF, or the images/data frames within your map document? You can interact with any of the elements of a layout using arcpy.mapping. For example, you can set the width height and position of data frames, change where picture elements go, etc. You may want to consider creating a web application with your services, adding a print service to it, and then embedding the web application within your website. Then, you can zoom around your map and select which area to print, and the map will be sent to the print task as JSON and you'll receive your PDF.
... View more
02-22-2017
09:30 AM
|
0
|
4
|
1783
|
| 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
|