Hi,
I am having a problem while trying to register enterprise geodatabase using python in ArcGIS Pro 3.1.1, I get the following error message:
RuntimeError: Cannot open AGS server connection.
I use arcpy.AddDataStoreItem method.The file is ok, I connect to a server using it. The server is federated with the Portal. I read somewhere that it was a known bug back there.
I have dozens of geodatabase connections (different users/schemas) and would not like to do it manually.
Any ideas? I did not find geoprocessing tool to do that either.
Thanks, Bart
Solved! Go to Solution.
Hi,
you could have been right Marcelo, I had no problems with running the script in ArcMap 10.8.1 python 2.7 env against ArcGIS Enterprise 10.8.1. That's satisfies me for now.
Thanks!
Bart
Which version of ArcGIS Enterprise are you attempting this with? The compatibility of the geoprocessing tool may be affecting your workflow: https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/share-analysis/geoprocessing-se...
I am not sure I understand your answer. I do not publish geoprocessing service (as addressed in the link provided). I want to automate registering enterprise geodatabases using Python ran in ArcGIS Pro 3.1.1 against ArcGIS Enterprise 10.8.1. I have no problems registering gdbs using ArcGIS Pro "Add data store" tool. But python script fails..
@Sfortunatamente - suggestion, please open a ticket with Esri Technical Support to investigate the issue further.
Hi,
you could have been right Marcelo, I had no problems with running the script in ArcMap 10.8.1 python 2.7 env against ArcGIS Enterprise 10.8.1. That's satisfies me for now.
Thanks!
Bart