|
POST
|
Hi @AravinthkumarBalasubramanian , yes under new item select web, you should see this page, then select store credentials this is so that your client does not log in every time he opens the service, you log in with a user account on your system that has access to the service. then just save
... View more
02-21-2024
04:01 AM
|
1
|
1
|
10488
|
|
POST
|
Hi @AravinthkumarBalasubramanian, so it does depend on your workflow, the below code is how you do it in python, but if your client has ArcGIS Enterprise then, you can just setup a secured service, Under content new item all that you are trying to build is https://portal.de/server/rest/services/Hosted/point/FeatureServer/{layerid}?token={token} import requests import json import logging def get_token_portal(portal_admin_url, portal_username, portal_password, referer): url = f"{portal_admin_url}/sharing/rest/generateToken" payload = { 'f': 'json', 'username': portal_username, 'password': portal_password, 'client': 'referer', 'referer': referer, 'expiration': '100'} headers = { 'content-type': "application/x-www-form-urlencoded", 'accept': "application/json", 'cache-control': "no-cache", } response = requests.request("POST", url, data=payload, headers=headers, verify=False) return json.loads(response.text)['token'] def query_rest(url, token, other_parameters=None, type="POST"): """url Root URL with webadaptor""" url = f"{url}" payload = { 'f': 'json', 'token': token } headers = { 'content-type': "application/x-www-form-urlencoded", 'accept': "application/json", 'cache-control': "no-cache", } if other_parameters is None: response = requests.request(type, url, data=payload, headers=headers, verify=False) else: response = requests.request(type, url, params=other_parameters, data=payload, headers=headers, verify=False) if response.text == "": return None return json.loads(response.text) if __name__ == "__main__": portal_admin_url = 'https://e1091.esri-southafrica.com/portal' username = 'portaladmin' password = 'password' server_url = "https://e1091.esri-southafrica.com/server/rest" token_portal = get_token_portal(portal_admin_url, username, password, server_url) req_export_backup = f"{server_url}/services/Hosted/service_8f8eccce65394272b49be5fb6f2e9087/FeatureServer/0" response_version = query_rest(req_export_backup, token_portal, type="POST") print(f"Result: {response_version}")
... View more
02-21-2024
03:05 AM
|
1
|
1
|
10559
|
|
POST
|
Hi @MeganWheatley , this is a bit of a tricky one, you can turn on copy content and turn off the referenced tick box, then if you have hosted feature layers they will be copied and the destination user can use them as normal without login in, this unfortunately does not apply to apps or referenced layer, so planning is essential in this regard. Regards Henry
... View more
02-20-2024
09:10 PM
|
0
|
1
|
1730
|
|
POST
|
Hi @PLadd, yes it is easy enough, you just unregister the current hosting server in ArcGIS Server manager and register it on the new server, then remove the Hosting role in portal and federate then new hosting server, that being said there is a few pitfalls. The services published in the old datastore that are sitting in the old ArcGIS server does not get moved to the new one, so if you want to preserve them then apply this workflow, this is assuming you are moving all the services e.g. tile Cache and relational. Install the new ArcGIS Server and register it with the datastore, Navigate to the old system and copy over the following, after stopping the server service. {your drive}:\arcgisserver\config-store\services\Hosted {your drive}:\arcgisserver\directories\arcgiscache\Hosted {your drive}:\arcgisserver\directories\arcgisoutput\Hosted {your drive}:\arcgisserver\directories\arcgissystem\arcgisinput\Hosted this will bring up the ArcGIS server services, now for the 3rd problem the URL's in portal for ArcGIS are still pointing to the old DNS and need to be updated. using notepad ++ in administrator mode find and replace the following . in {your drive}:\arcgisportal\content\items find and replace OLD DNS: https://old_dns/{web_adaptor_name}/rest/services/Hosted NEW DNS: https://new_dns/{web_adaptor_name}/rest/services/Hosted FILTER: *.* !*.png !*.tiff !*.jpeg !*.jpg !*.pdf Directory: {your drive}:\arcgisportal\content\items NB make a backup off your system before making any changes. Regards Henry
... View more
02-15-2024
10:09 PM
|
2
|
0
|
3022
|
|
POST
|
Hi @CodyPatterson,Yes that is normal, there is an application called fiddler, you can install it and should be able to see what calls fail when connecting to ArcGIS Enterprise, I have had a case where I needed to re-install portal to get the pro login to work again, so I hope that is not the case here. I also had a case where the login URL went over 7443 for some reason, but fiddler should be able to confirm if this is the case. Regards Henry
... View more
02-15-2024
05:10 AM
|
0
|
1
|
5134
|
|
BLOG
|
Good Day Esri Community, After struggling with setting up survey123 Web and survey123 connect in a disconnected environment, I thought let me share my process with the community, in the hopes of helping the someone down the line. The Problem, When installing Survey123 connect in a disconnected environment you are not able to publish content via Survey123 connect this is because the survey123 Api is not available. When installing Survey123 Web you cannot open the surveys in the browser, this is because Survey123 is looking for https://www.arcgis.com and https://survey123.arcgis.com/api in the background The Solution for survey123 connect apply the following steps, Go to setting then services and change the https://survey123.arcgis.com/api to your Survey123 Web URL and add /api on the end, this will allow you to publish surveys after signing in. This assumes that you have followed the following article to setup offline templates. How To: Configure an Installed ArcGIS Survey123 Website in Disconnected Environments (esri.com) Survey123 Web Install Downloads | Notepad++ (notepad-plus-plus.org) open the application as administrator and press ctrl + f this will open the find dialog, go to find in files, and make the following two replacements. replace www.arcgis.com with your portal your portal URL e.g. https://portal.com/webadaptor at C:\Program Files\ArcGIS\Survey123website and find and replace https://survey123.arcgis.com/api with your Survey123 Web URL and add api at the end e.g. https://survey123_dns/survey123/api at C:\Program Files\ArcGIS\Survey123website Restart your webserver. in my chase after making these changes I was able to open up surveys in the browser. As always please make backups off your system before implementing any major changes. Regards Henry
... View more
02-15-2024
03:22 AM
|
3
|
0
|
3271
|
|
POST
|
Hi @Sunnywaygis, Well usually I would use the below code to get the users but going over 10 000 there seems to be some hard limit so you can use the below code and specify the users manually or get them through a rest query, I would also query and use the users one at a time because you are downloading a lot of objects. but the below code will download all the users of a enterprise we also add the portal_id for AGOL otherwise you get public content and the !_esri to ignore Esri built in users. user_manager = arcgis.gis.UserManager(con)
portal_id = 0123456789ABCDEF # for arcgis enterprise only
users_count = user_manager.advanced_search(query=f"{portal_id} AND !_esri", return_count=True)
users = []
for user_num in range(1,users_count +1):
try:
user = user_manager.advanced_search(query=f"{portal_id} AND !_esri",start=user_num, max_users=1)
users.append(user)
except Exception as e:
print(f"User {user_num} failed")
for user in users:
print(user)
... View more
07-20-2022
11:06 PM
|
1
|
2
|
4138
|
|
POST
|
Hi @John_Spence it looks to me like your hit is coming from the https://hub.arcgis.com/arcgis hub There it is still referencing the app try login into the hub link itself and update\delete it from there. Kind Regards Henry
... View more
07-15-2022
08:24 AM
|
0
|
3
|
1721
|
|
POST
|
Hi Mario I am not sure, but usually the reg keys are the same for the version you would deploy, my guess is that something just went wrong on windows that prevented the removal of the key, the location where you found the broken key is interesting. But I am glad you where able to find the problem and get the system back up. Kind Regards Henry
... View more
07-15-2022
08:05 AM
|
0
|
0
|
2300
|
|
POST
|
Hi @MarioBruschi, I had the same problem the other day, but was jour data store working before the upgrade ? if yes, then it is probably a broken registry key, you will have to go look for it in the register and delete it they are located here under regedit HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ If you have a look at you add remove programs and it is not there but it is in the register then that is definitely the case. NB please make backups right click and export they key before deleting anything The key you are look for is {45E1C306-B1AB-4AE5-8435-818F0F9F8821} or ArcGIS datastore 10.8.1 just delete it as shown above. Regards Henry
... View more
07-14-2022
09:11 AM
|
0
|
3
|
2323
|
|
POST
|
Hi @RobStauder, You can check you datastore cert by opening the url https://localhost:2443/arcgis/datastore then looking at the cert info. You have two problems your ArcGIS Server is not functioning correctly and your Datastore is not validating. First make a backup of the system Then can you go to services and look which service account is running your ArcGIS server then reapply the security rights on the folder structure at c:\program files\arcgis\server and the location of you configstore c:\arcgisserver or d:\arcgisserver... Service account config-store Program Files right click and open server properties then security and your service account make sure it has full control on these folders, there is a new Windows policy that changes the service account to read only. after you have applied this you can check if your ArcGIS server is functioning. Then there might be a partial file that has been created during your failed publishing go to C:\arcgis\arcgisserver\config-store\services\Hosted and see if you can see anything also your rest and services will not work if this is the case https://dns:6443/arcgis/rest Datastore if you can make a backup then @Ikebana suggestion will work and do a nice clean rebuild of datastore but your ArcGIS server must be in a working state. You can also try the following go to server manager and unregister the datastore then re-register it on https://dns:2443/arcgis/datastore you only have to unregister relational NB did you make the backups using the https://dns:6443 admin url if it still fails then go to the tool "C:\Program Files\ArcGIS\DataStore\tools\unregisterdatastore.bat" and try the 2443 url again If it still fails then the only option left is to restore the backup to create the backups run "C:\Program Files\ArcGIS\DataStore\tools\backupdatastore.bat" --store relational and "C:\Program Files\ArcGIS\DataStore\tools\backupdatastore.bat" --store tileCache please make sure that they did actual make a backup in the backup location and something like this for relational to restore uninstall ArcGIS datastore and remove all the files except backup in c:\arcgisdatastore or your location relational then edit and run these commands "C:\Program Files\ArcGIS\DataStore\tools\restoredatastore.bat" --store relational --target most-recent --source-loc D:\arcgisdatastore\backup\relational --data-dir D:\arcgisdatastore --server-url https://dns:6443/arcgis --server-admin adminuser --server-password adminpassword --loaddata true --prompt no tileCache "C:\Program Files\ArcGIS\DataStore\tools\restoredatastore.bat" --store tileCache --target most-recent --source-loc D:\arcgisdatastore\backup\tilecache --data-dir D:\arcgisdatastore --server-url https://dns:6443/arcgis --server-admin adminuser --server-password adminpassword --loaddata true --prompt no don't copy and past the above string type it out please you might get encoding problems Regards Henry
... View more
03-02-2022
08:27 PM
|
0
|
0
|
10637
|
|
POST
|
Hi @JimSaundersJr how far did you get with the deployment ? When you open your site https://saundersintl.net/portal/webadaptor on the server do you see the webadaptor configuration page ? have you configured them like this ArcGIS Server ArcGIS for portal You can make the host file entry but before you install ArcGIS for portal and never change it after the fact. Can you check the log file name under c:\arcgisportal\logs or where you installed ArcGIS for portal what is the name is it saundersintl.net if not make the host file entry and uninstall portal clean out c:\program files\arcgis\portal and reinstall portal NB if this is a clean install. can you confirm that the webadaptors are reflecting under your website you want to see server and portal in here I noted that you have a website also running on this url in the root, this can cause conflicts if yes can you move your personal website to a folder. if you are open to it call it something like home, then your website would be https://saundersintl.net/home otherwise you will have to make a redirect with url re-writes to the home folder if you want to preserve https://saundersintl.net Is ArcGIS Enterprise up on the server if you open https://saundersintl.net:6443/arcgis/manager and https://saundersintl.net:7443/arcgis/home do you see websites? Please let me know what is working or not and I will guide you trough the steps, first lets get it working on your server then we will worry about the rest, but I think when it is working then you will be good to go. Kind Regards Henry
... View more
02-27-2022
09:04 PM
|
0
|
3
|
1515
|
|
POST
|
Hi @EricaPfister , this is how you do it in ArcGIS API I don't use the user.search because if there is a corrupt profile the whole query fails. This script will iterate trough each user and skip broken profiles. import arcgis url = "https://url.com/portal" admin_user = 'username' password = 'password' con = arcgis.gis.GIS(url, admin_user, password, verify_cert=True) user_manager = arcgis.gis.UserManager(con) users_count = user_manager.advanced_search(query="0123456789ABCDEF AND !_esri", return_count=True) for user_num in range(1, users_count+1): try: user = user_manager.advanced_search(query="0123456789ABCDEF AND !_esri", start=user_num, max_users=1) print(user) print(user['results'][0].username) except Exception as e: print(f"User {user_num} failed") Hope it Helps Regards Henry
... View more
11-05-2021
12:07 AM
|
3
|
0
|
5508
|
|
POST
|
Hi @JoelKyereNNimarko, in IIS your IWA Integrated windows authentication is turned on on the arcgis webadaptor this should just be turned on for portal webadpator if you just have the one you should install another one as this is best practice currently. go to the webadpator in iis click on authentication and turn on anonymous authentication and turn off windows authentication Hope it helps Regards Henry
... View more
10-27-2021
07:04 AM
|
1
|
0
|
1126
|
|
POST
|
Hi @DeanHowell1, @SamuelGould So I have seen a few scenarios where collaboration fails. - Poor network connectivity. - If you have more than +- 70 items in your collaboration, this is probably because of the size limit, there is a 1GB file limit and 5GB size limit on the replication package you can see this under update info in portal sharing rest of the collaboration owner. I created multiple workspaces to get around this. - Integrated Windows Authentication can also be a problem if the service account password changes. - Schema changes will also break items in the collaboration e.g. adding a column or turning sync on and off Hi @AdamBakiera, I am not sure about your question, Mostly just work on ArcGIS Enterprise Core Deployments and that would be controlled by the Esri.Inc team. Hope it Helps Regards Henry
... View more
10-27-2021
06:54 AM
|
0
|
0
|
3911
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 2 weeks ago | |
| 1 | 06-16-2025 09:33 PM | |
| 1 | 10-30-2024 05:58 AM | |
| 2 | 02-15-2024 10:09 PM | |
| 1 | 07-23-2024 10:07 PM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|