|
POST
|
This Esri documentation may be of use in this topic as well: Extending geoprocessing through Python modules—Geoprocessing and Python | Documentation
... View more
03-11-2020
11:08 AM
|
0
|
1
|
642
|
|
BLOG
|
I also want to add a comment by Xander Bakker in this post: Why arcpy.Copy_management() tool require exclusive schema lock? For managing locks in an enterprise geodatabase you could have a look at (you need to use an administrative account to be able to use these): arcpy.ListUsers The see the users that have currently a connection to the EGDB: arcpy.ListUsers("Database Connections/admin.sde") arcpy.DisconnectUser To disconnect a user in case necessary arcpy.DisconnectUser("Database Connections/admin.sde", "ALL") arcpy.AcceptConnections To not allow users to connect to the database (do set this back to True when finished updating the database) arcpy.AcceptConnections("Database Connections/admin.sde", False)
... View more
03-11-2020
08:56 AM
|
0
|
0
|
296
|
|
POST
|
Hi Rohit Singh and Tyler Burns, It still doesn't work fine for me: import csv,os, sys, datetime, base64
from arcgis.gis import GIS
from getpass import getpass
# import urllib2
print('===================')
print('The script that is running: ' + __file__)
print('First you have to log in to Portal for ArcGIS')
# Log in
username = 'axc013o'
# username = 'domain\\axc013o'
# password = os.environ.get('USERPASS')
# password = getpass(prompt='Password: ', stream=None)
password = base64.b64decode('randomcharacters').decode('utf-8')
# proxy = urllib2.ProxyHandler({'http': 'http://proxyServer:8080', 'https': 'https://proxyServer:8080'})
# opener = urllib2.build_opener(proxy)
# urllib2.install_opener(opener)
portalURL = 'https://portalDomain/portal/'
# portalURL = 'https://portalHostname:7443/arcgis/home/'
myPortal = GIS(portalURL, username, password)
# myPortal = GIS(portalURL, username, password, proxy_host=f'{username}:{password}@proxyServer', proxy_port=8080)
# myPortal = GIS(portalURL, username, password, proxy_host=f'{username}:{password}@10.123.8.111', proxy_port=8080)
# verify_cert=False does not fix issue.
# another one of our proxy servers also doesn't work.
print ("Start: "+datetime.datetime.today().strftime('%c')) Traceback (most recent call last):
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1036, in _send_output
self.send(msg)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 974, in send
self.connect()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 1407, in connect
super().connect()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 950, in connect
self._tunnel()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py", line 929, in _tunnel
message.strip()))
OSError: Tunnel connection failed: 503 Service Unavailable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\AXC013O\Downloads\z\getUsers.py", line 29, in <module>
myPortal = GIS(portalURL, username, password)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 325, in __init__
raise e
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 310, in __init__
referer=self._referer)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\portalpy.py", line 163, in __init__
client_id=client_id)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py", line 308, in __init__
self.login(username, password, expiration, client_id)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py", line 554, in login
resp = self.post('', { 'f': 'json' }, add_token=False) # probe portal to find auth scheme
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py", line 1131, in post
resp = opener.open(url, data=encoded_postdata.encode())
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 526, in open
response = self._open(req, data)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 544, in _open
'_open', req)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 1361, in https_open
context=self._context, check_hostname=self._check_hostname)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error Tunnel connection failed: 503 Service Unavailable> I even tried putting the proxy server in my environment variables, as well as turning off the pac server, as shown in the attached png. Can you please suggest any tips?
... View more
03-05-2020
03:05 PM
|
0
|
0
|
6572
|
|
POST
|
I am at v 1.7.1, and I see that now proxies are available as kwargs for sure! arcgis.gis module — arcgis 1.7.1 documentation
... View more
03-05-2020
01:49 PM
|
0
|
0
|
6572
|
|
IDEA
|
I literally followed the same json syntax to populate the properties in the same manner as the ArcGIS Pro GUI writes to this file: {"Items":[{"TypeId":"database_egdb","Path":"C:\\Users\\<id>\\AppData\\Roaming\\Esri\\Desktop10.4\\ArcCatalog\\[email protected]","Id":"","url":null,"name":"[email protected]","persistFavorite":false}]} I am at version 2.5.0
... View more
03-03-2020
11:15 AM
|
0
|
1
|
7194
|
|
IDEA
|
I noticed that I was not able to manually add an sde connection to the favorites list by editing the Favorites.json file here, as it causes an error that causes the favorited sde files to not display in the Pro GUI: C:\Users\<id>\AppData\Roaming\Esri\ArcGISPro\Favorites\Favorites.json
... View more
03-03-2020
09:11 AM
|
0
|
1
|
7194
|
|
POST
|
This Esri Technical Support article may help: Error: Client software failed to load. Be sure the database client software is installed and configured correctly
... View more
03-03-2020
08:15 AM
|
0
|
0
|
6134
|
|
POST
|
Hi Robert, do you have a recommended approach I can take to find the webmap item id for any given configurable app/custom JS API app/etc? I ask, because I see that none of these options work when trying to find the web map id in those cases: this.config.webmap
this.appConfig.map.itemId
window._viewerMap.itemId
... View more
02-28-2020
07:20 AM
|
0
|
1
|
1330
|
|
POST
|
Hi Andrew, Can you share more of your JS script, like what you had to require for this to work?
... View more
02-27-2020
09:45 AM
|
0
|
0
|
2219
|
|
POST
|
See this: Make your data accessible to ArcGIS Server—ArcGIS Server (Windows) Installation Guide | Documentation for ArcGIS Enterpr…
... View more
02-19-2020
07:15 AM
|
0
|
0
|
3713
|
|
BLOG
|
This blog post reviews some of the methodologies that are helpful when trying to find locks. See the attached file. Note that the preview doesn't seem to show the word document very well, so its' better to download it. For example, this is how I resolved this error: Edit operation failed. This data is currently locked by another user and cannot be saved. Esri Technical Support ESRI UK Technical Support
... View more
02-18-2020
06:48 PM
|
1
|
1
|
814
|
|
POST
|
Here is a great resource on interacting with a database using a Web API: Building a Web API with Express and PostgreSQL to Consume from Browser - YouTube
... View more
02-17-2020
08:14 AM
|
0
|
0
|
3032
|
|
POST
|
Thank you Derek, I also see this great article now: https://community.esri.com/community/gis/applications/operations-dashboard-for-arcgis/blog/2018/01/24/operations-dashboard-and-arcgis-enterprise-106
... View more
02-07-2020
11:35 AM
|
0
|
0
|
3130
|
|
POST
|
When I try to launch the default deployment of Operations Dashboard that comes with Enterprise Portal for ArcGIS 10.5.1, I get: I am searching 'Operations Dashboard', as per these instructions: Distribute Operations Dashboard for ArcGIS (Windows) through Portal for ArcGIS—Portal for ArcGIS (10.5.x) | ArcGIS Ent… I do arrive at the item details page for item id=bb415d713a6640838c58e4ab9a0db95a When, I click 'Get Application', I get redirected to https://www.arcgis.com/opsdashboard/OperationsDashboard.application , which is the page not found error shown above. Derek Law
... View more
02-06-2020
11:04 AM
|
0
|
2
|
5235
|
|
POST
|
In our case, we had to configure the HTTP Proxy correctly in the 'preferences' dialog box: Enter in the Proxy Host, Port, user (domain\username), password, apply, ok. File>Exit CityEngine Relaunch it. The sign in dialog box now works.
... View more
01-30-2020
03:13 PM
|
1
|
0
|
4226
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-04-2024 10:22 AM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|