I am trying to access the ClipLayer (Geoanalytics) tool using arcpy in my script to extract vector layers (polygons) that overlays grids (one by one) and save them as a new .shp. But I am getting the following error :
OSError: The toolbox file https://geoanalytics.arcgis.com/arcgis;services/GeoAnalyticsTools;UseSSOIdentityIfPortalOwned was not found.
Failed to execute (ClipLayer).
I checked the C:\Program Files\ArcGIS\Pro\Resources\ArcToolBox\toolboxes\GeoAnalytics Tools.tbx\ClipLayer.tool folder and content file, link file, resource script are available and I can run the tool successfully within ArcGIS Pro but since I have thousands of grids it is impossible to do it mnually.
Any help or way around would be much appreciated. Thank you for your time.
Solved! Go to Solution.
server or desktop? Your license level and is it enabled for you?
Thank you for your reply. It's on desktop, I have an advanced license and the clipLayers is added. I can run it within ArcGIS Pro 2.9.0 toolbox and run it but could not get any success with arcpy.
For now, I used PairwiseClip(Analysis ) as suggested by Mr. Jayanta Poddar below and it works.
Thank you for your time.