|
POST
|
What I just did was change the 'server' variable to the IP address of the server, rather than the domain name, and ran it. This produced a result, in which service folders and services listed under each folder, and mxd paths are listed. Then, the last part of the result says: Traceback (most recent call last): File "C:\Users\acastillo\Desktop\server.py", line 38, in <module> print("\t\t" + dataSource['resources'][0]['onPremisePath']) KeyError: 'resources'
... View more
12-05-2018
10:18 AM
|
0
|
1
|
4353
|
|
POST
|
I fixed it. Since I copied and pasted your script to a text file, then saved as "".py, the IDE was having an issue reading the spacing. So, I fixed the spacing. Now, I run it, and get this error: Traceback (most recent call last): File "C:\Users\acastillo\Desktop\server.py", line 11, in <module> response = urllib2.urlopen(req) File "C:\Python27\ArcGISx6410.4\lib\urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "C:\Python27\ArcGISx6410.4\lib\urllib2.py", line 431, in open response = self._open(req, data) File "C:\Python27\ArcGISx6410.4\lib\urllib2.py", line 449, in _open '_open', req) File "C:\Python27\ArcGISx6410.4\lib\urllib2.py", line 409, in _call_chain result = func(*args) File "C:\Python27\ArcGISx6410.4\lib\urllib2.py", line 1227, in http_open return self.do_open(httplib.HTTPConnection, req) File "C:\Python27\ArcGISx6410.4\lib\urllib2.py", line 1197, in do_open raise URLError(err) URLError: <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it>
... View more
12-05-2018
10:06 AM
|
0
|
7
|
4353
|
|
POST
|
When I edit and then run with IDLE, it says: "There's an error in your program: invalid syntax" When I edit and then run with IDLE (ArcGIS Pro), it says: "invalid character in identifier"
... View more
12-05-2018
09:58 AM
|
0
|
8
|
4353
|
|
POST
|
I get an error in syntax at line 22. Can you give me a quick run-down of what this python script does?
... View more
12-05-2018
09:46 AM
|
0
|
10
|
4353
|
|
POST
|
I also see this resource: Example: Write properties of all services to a CSV file https://enterprise.arcgis.com/en/server/10.4/administer/windows/example-write-properties-of-all-services-to-a-csv-file.htm
... View more
12-05-2018
09:46 AM
|
0
|
0
|
1801
|
|
POST
|
Thank you for your reply Jake, What API are you using, so I can read documentation regarding this?
... View more
12-05-2018
09:06 AM
|
0
|
12
|
4353
|
|
POST
|
I would like to find out the Original mxd document path (under the 'General' tab) and map service rest url (under the 'Capabilities' tab) from all services available in ArcGIS Server Manager, rather than using the UI webpage to drill down into each service to find out this info. This would most likely involve using the ArcGIS Rest API for Server Administration. So far, I have found the server manifest json file for a specific service using this documentation: http://gis.esri.com/arcgis/admin/www/doc/index.html#/Service_Manifest/02w000000058000000/ This only lists the mxd path, but not the ms rest url. In addition, this still only lists that information for one service only. Ideally, a scripting language would be used to read the information for every service, and print it out to a document, such as a text file. Any ideas?
... View more
12-04-2018
01:12 PM
|
0
|
15
|
7177
|
|
POST
|
Dake Henderson , What you are looking to do can be accomplished using the smart editor widget.
... View more
11-27-2018
10:55 AM
|
1
|
0
|
4361
|
|
POST
|
We need a way to hide a pop up hyperlink if no file is found in the IIS virtual directory to be served out by the web server. I don't want the user to click on hundreds of features that open a 404 error page until they finally open a feature that actually opens a resource. Here is some context: We have a user defined unique identifier string field. Every record has an ID. In a web server, we are storing and serving out videos/pdfs with the ID as the file name. For example, In the popup for a feature, the ID field value is ID123. In AGOL, configuring a custom attribute display, I create a link, and set the url to: //domain/GIS_CCTV/{ID}.mp4 Set the link text to: Click Here for Video I do a similar configuration for the pdf files. In the web server, we do not have .mp4s and pdf's for every one of our ID's, such as ID123.mp4 and/or ID123.pdf So, when the user clicks the 'Click Here for Video/PDF' link, they are taken to a 404 error page because the file is not available in the web server. I started trying to do this with Arcade attribute expressions, because Arcade can show or hide an attribute field, based on whether or not there is an attribute value in the specific feature record. My ID's will always have attribute values, so Arcade would always show the ID field. My intent is not to hide the ID field anyways. The issue with using Arcade for my scenario is that I do not have a Hyperlink field in my table schema for Arcade to hide. Furthermore, Arcade does not seem to be capable of getting header response info from the web server. The issue I have with adding the new field to indicate whether or not the feature has files is that the directory is consistently changing (is dynamic). People may upload new files into the directory on a daily basis. This means that the values in my field would be outdated. For example, ID234 might not have a file corresponding to it today, but might have a ID234.pdf in the web server virtual directory tomorrow. This resource might be a good starting point: https://stackoverflow.com/questions/12013368/disable-html-link-if-the-urls-link-returns-an-error
... View more
11-07-2018
11:12 AM
|
0
|
1
|
4944
|
|
BLOG
|
Thank you Joe, The issue I have with adding the new field to indicate whether or not the feature has files is that the directory is consistently changing. People outside of our GIS group may upload new files into the directory on a daily basis. This means that the values in my field would be outdated. For example, ID234 might not have a file corresponding to it today, but might have a ID234.pdf in the web server tomorrow. I don't mind using WAB Developer Edition to make my goal possible. I would just like some help with it.
... View more
11-07-2018
08:07 AM
|
1
|
0
|
40974
|
|
BLOG
|
Kelly Gerrow Xander Bakker Kevin MacLeod Robert Scheitlin, GISP Or anyone else: How to disable/hide a url on a webpage if nothing is found on the host web server? We need a way to hide a pop up hyperlink if no file is found in the IIS directory to be served out by the web server. Here is the context to my question: We have a user defined unique identifier string field. Every record has an ID. In a web server, we are storing and serving out videos/pdfs with the ID as the file name. For example, In the popup for a feature, the ID field value is ID123. Configuring a custom attribute display, I create a link, and set the url to: http://domain/GIS_CCTV/{ID}.mp4 Set the link text to: Click Here for Video I do a similar configuration for the pdf files. In the web server, we do not have .mp4s and pdf's for every one of our ID's, such as ID123.mp4 and/or ID123.pdf So, when the user clicks the 'Click Here for Video/PDF' link, they are taken to a 404 error page because the file is not available in the web server. I started trying to do this with Arcade attribute expressions, because Arcade can show or hide an attribute field, based on whether or not there is an attribute value in the specific feature record. My ID's will always have attribute values, so Arcade would always show the ID field. My intent is not to hide the ID field anyways. The issue with using Arcade for my scenario is that I do not have a Hyperlink field in my schema for Arcade to hide. Furthermore, can Arcade/any other method hide the URL if there is no file available in the web server?
... View more
11-07-2018
06:59 AM
|
1
|
0
|
40974
|
|
POST
|
Spaces and special characters aren't allowed in field names, but they are acceptable in the alias. While that may be true in ArcCatalog, I've found it not true when creating a view. View sql queries do not like the spaces. Great alterative you provided though.
... View more
10-26-2018
06:35 AM
|
0
|
0
|
4585
|
|
POST
|
Yes, you are right. The correct SQL syntax to use in arcCatalog is to not use spaces. You might try to replace the spaces with underscores. For example, SELECT fc.field as 'field_alias' from database.schema.featureclassname_evw as fc To expand on what Manvi said, If you are using a database view, it may not like to participate with geodatabase objects. You might try to register the view with the geodatabase, starting at 10.5, or ArcGIS Pro. https://community.esri.com/groups/geodatabase/blog/2016/12/14/new-at-105-registering-a-database-view-with-the-geodatabase
... View more
10-24-2018
12:31 PM
|
0
|
2
|
4585
|
|
POST
|
See this thread for the solution: Legend customization with print service, using custom map template Question asked by zaloudek on Oct 9, 2015 https://community.esri.com/message/559272
... View more
10-18-2018
05:39 PM
|
0
|
0
|
1001
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-11-2024 08:12 PM | |
| 1 | 10-03-2024 07:58 AM | |
| 1 | 01-13-2025 10:30 AM | |
| 1 | 04-18-2025 04:53 PM | |
| 1 | 02-21-2025 09:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-25-2025
04:55 PM
|