|
POST
|
Regarding ArcMap not being able to publish shared services, there is a workaround, or maybe a hack, that is probably not supported but works fine in my experience. Obviously test this out on your test system first and make some backups before attempting in prod. Use ArcMap to publish as a new service as a normal dedicated service. Stop the new service Open the service definition file in <arcgisserverhome>config-store\services\NewMap.MapServer.json change the line provider from "ArcObjects" to "DMaps" restart the map service ArcServer will now think allow you to change the instance type to shared.
... View more
11-19-2020
11:11 PM
|
1
|
2
|
5246
|
|
POST
|
Thank you Alessandro Valra This fixed the issue for me. I made a backup of the existing C:\arcgisserver\config-store\security\security-config.json file and then replaced the original with your code above.I was then able to continue the site setup using the original site admin account, not the AD account that had had its password changed. One thing to note for others is to stop and restart the ArcGIS Server service after the change and before continuing the site setup in the browser. Basically I replaced "userStoreConfig": { "type": "WINDOWS", "properties": { "adminUser": "network\\account", "adminUserPassword": "oldencryptedpassword" } } with "userStoreConfig": { "type": "BUILTIN", "properties": {} }
... View more
08-21-2020
11:47 AM
|
1
|
0
|
2562
|
|
POST
|
I couldn't figure out how to use IMapServerDataAccess until I read this. Thank you so much.
... View more
07-30-2020
07:15 PM
|
0
|
0
|
1244
|
|
POST
|
I'm using the ArcGIS API for Python to export a feature service to a FGDB and then download it. My problem is that the export function appears to be asynchronous even though I set wait=True . The returned item from gis.item.export() has a jobid so this shouldn't be a problem if I could poll the service for job status but I don't see a URL to do this. Without a synchronous export or a job status I am user time.sleep(60) to slow things down but that not exactly ideal So how do I get my export to execute synchronously, or how do I query the job status? def Get_AGOL_Data_All2(itemID):
""" PARAMETERS: itemID (str) = Ther Portal itemID of the feature service to download.
RETURNS: None
FUNCTION: Uses the arcgis api for python library to connect to Portal and copy a feature service to a
FGDB. Portal returns a zipped file which then has to be unzipped and the contents moved to the staging location
NOTE: """
print ('Starting Get_AGOL_Data_All()')
# #anon_gis = GIS()
mygis = GIS(username="userid",password="****")
service = mygis.content.get(itemID)
itemDesc = service.export(title="DamageReports", export_format= 'File Geodatabase', parameters=None, wait='True')
time.sleep(60) fgdb = mygis.content.get(itemDesc['exportItemId'])
fgdb.download(r"D:\temp") with zipfile.ZipFile(os.path.join( r"D:\temp" , fgdb.name),'r') as zip_tar:
zip_tar.extractall(r"D:\temp") print ('Finished Get_AGOL_Data_All()')
arcpy.Rename_management(os.path.join(r"D:\temp", zip_tar.filelist[0].filename.split("/")[0]),"DamageReports.gdb")
return
... View more
07-23-2020
02:55 PM
|
0
|
3
|
2945
|
|
POST
|
In my case the problem wasn't with the search results, I was getting the correct service definition item, my problem was that the map item name had changed in the Pro .aprx. Since the target feature service titles no longer matched the update call would fail. https://gis.stackexchange.com/questions/309685/how-to-update-a-hosted-feature-service-on-arcgis-online-using-the-python-api-for I deleted and republish the feature serive from Pro the thread I found the solution on says you can also change the map name back to the original name. I didn't try this.
... View more
07-23-2020
02:47 PM
|
0
|
0
|
2787
|
|
POST
|
I'm writing a script to export some feature services in AGOL to FGDB and then download them. The export process takes a while but my code doesn't pause execution despite using wait='True'. This results in a corrupted zip file as my code downloads it before the export has finished. Since gis.item.export returns a jobid I would think I could poll the job status until it is success however I don't see a rest endpoint to do this. I've tried things like https://services1.arcgis.com/myorg/ArcGIS/rest/services/myFS/jobs/<jobid> but I don't see any status messages. As of right now I am putting in an arbitrary 3 minute wait timer but I would like something a little less hacky. mygis = GIS(username="myuser",password="*****") service = mygis.content.get(itemID) itemDes = service.export(title="DamageReports", export_format= 'File Geodatabase', parameters=None, wait='True') fgdb = mygis.content.get(itemDes['exportItemId']) <wait time goes here> fgdb.download(r"D:\temp")
... View more
07-17-2020
02:22 PM
|
0
|
1
|
1703
|
|
POST
|
I just found out this morning that EGDB now support amazon aurora. We are currently have a PostgreSQL RDS database at 10.6.1 and I'm planning my 10.8 upgrade soon. Now I'm wondering if I should move to Aurora as part of the upgrade. I'm not very experienced with Aurora beyond the tact that it is supposed to be cheaper. Does anyone have any experiences or advice they can share? Our current EGDB usage is pretty light, maybe 5 - 10 concurrent connections and < 100 iOPs per hour. It functions more as a read only warehouse through read only feature services, although there are 4 -5 edited feature services. But twice a week it gets hit very hard as the content is refreshed from on prem edit environments. So any advice, thoughts? (I wish I had seen this yesterday so I could have asked the fine folks at the geodatabase section of the UC expo)
... View more
07-16-2020
10:33 AM
|
0
|
0
|
1118
|
|
POST
|
Thanks for getting back to me Michael. I created the geoprocessing package by using the package results geoprocessing tool. I was following the documentation here. The instructions just link to the publish results tool. Good to know a script or model wrapper is preferred. All of which is moot anyway. I will have to investigate GDAL raster to create my tiles unless you have another suggestion?
... View more
06-23-2020
07:34 AM
|
0
|
0
|
2421
|
|
POST
|
Michael Branscomb Was this functionality ever added? I've created a geoprocessing package from the Create Map Tile Package tool and I'm trying to run it in Local server. I can see the parameter for in_map but don't know what string to pass it. How to I find the name of my runtime map, I don't see a name property. Vijit Wadhwa Did you every come to a solution for this? Thanks Drew
... View more
06-22-2020
04:58 PM
|
0
|
2
|
2421
|
|
POST
|
Thanks Matt. I just had ESRI tech support show me the same workaround. We are on 2.4 and it is still happening. Our main geodatabase has nearly a thousand feature classes in it so scrolling to the bottom isn't something we regularly do! ESRI also confirmed it was a bug and told me it was fixed in 2.5.
... View more
03-02-2020
08:35 PM
|
0
|
0
|
3309
|
|
POST
|
Matthew Boyle Did you ever get a resolution to this? Having the exact same problem. Feature classes with numeric characters in their names are not showing up in the Pro catalog tree.
... View more
02-21-2020
02:38 PM
|
0
|
2
|
3309
|
|
POST
|
I'm having the same problem but don't know how to fix it. I tried to create a SITE using an account in the Administrators group but get the same error as you got. I have a geometry service added to the Portal using the Portal Utility Services tab in Organization settings. This service is unsecured. I don't see any way of sharing it. Here is the debug trace from the browser DEBUG: ------------------------------- vendor-d0f2739fd531e8b547bea7d6cbc78829.js:2751:141 DEBUG: Ember : 2.18.2 DEBUG: Ember Data : 2.18.2 DEBUG: jQuery : 3.3.1 DEBUG: ------------------------------- vendor-d0f2739fd531e8b547bea7d6cbc78829.js:2751:141 DEBUG: For more advanced debugging, install the Ember Inspector from https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/ DEBUG: Portal: Setting root url to /portalwebadapter/apps/sites/admin/ DEBUG: added gatedLocales ar, he DEBUG: torii adapter.checkCookie:: Cookie session has not expired yet DEBUG: torii adapter.fetch:: Rehydrating session DEBUG: torii adapter.open:: Creating an AuthMgr DEBUG: torii adapter._createAuthManager:: Creating AuthMgr DEBUG: torii adapter.open:: Recieved portal and user information DEBUG: torii adapter.open:: Fetching user groups DEBUG: User has been automatically logged in... DEBUG: Portal Env: Loading svg files from ./ DEBUG: AuthenticatedRoute:checkAccess: for route sites DEBUG: Error in response: Invalid Token DEBUG: Asset Base: https://server/portalwebadapter/apps/sites/admin/assets
... View more
01-30-2020
08:50 AM
|
0
|
0
|
3445
|
|
POST
|
Richard Gordon I'm running into the exact same issue. Does installing Conda and the arcgis-server-py3 on a machine that already has ArcGIS Server installed fix the problem as Joshua Bixby suggests ?
... View more
10-01-2019
10:35 PM
|
0
|
2
|
2129
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-19-2023 09:32 AM | |
| 1 | 01-21-2025 01:39 PM | |
| 1 | 07-29-2025 10:45 AM | |
| 1 | 07-17-2025 03:33 PM | |
| 1 | 07-10-2025 10:30 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|