Select to view content in your preferred language

Dissolve Boundaries -> Error: UseSSOIdentityIfPortalOwned Was Not found.Failed to Execute

1847
2
01-06-2024 05:58 PM
Labels (1)
Andrew_P
Emerging Contributor
Hello ESRI community,
 
I run into a problem when trying to use ArcPy call to the ArcGIS Pro function Dissolve Boundaries on a single user University Workstation. 
 
I can run the function without issue using the ArcGIS Pro GUI. However, any attempt to call via ArcPy results in a failure.  See this website for a fairly close description of the issue, as well as below my signature for the information returned following the failed call.
 
After encountering the issue I made sure that
  • I was running an up to date version of ArcGIS Pro - newly updated to 3.2.1 [of course breaking my python install and requiring a new clone and relinking to my IDE... grrrr]
  • I had a license for the 'GeoAnalytics' extension as part of the University's concurrent Advanced License
  • I imported the toolset covering 'DissolveBoundaries' in my code....
    • from arcpy.sfa import *  [the IDE claims it is unsued]
  • The GeoAnalytics extension was checked out in my code
    • arcpy.CheckOutExtension("GeoStats")

I am not sure what of the above is voodoo and  what will actually be needed to get the function running, but the combined effect of all of those changes was nothing.
 
The call continues to fail.
 
This is the first time I have encountered an issue like this in the 5 years I have been using ArcGIS Pro. 
 
I do not know enough about the machine's certificates to attempt the fix suggested above, nor am I confident in doing so without potentially causing an issue with the machine's security.   I am also very hesitant to log in via cleartext from my python code which seems inadvisable even though it may be another potential workaround.
 
I have an email in to my University IT team, which will hopefully make it to the ArcGIS administrator, but wonder if anyone has thoughts on a fix in the meantime, or even some comments on what is voodoo and what is actually needed in my above attempts to get DissolveBoundaries running via ArcPy on my client computer.
 
Thank you,
Andrew
---
 
arcpy.sfa.DissolveBoundaries( ScratchGDB + "\\fishclipB" , ScratchGDB + "\\fishclipC")

Traceback (most recent call last):
  File "C:\Users\[username removed]\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\lib\site-packages\IPython\core\interactiveshell.py", line 3553, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-8-92faa8793491>", line 1, in <cell line: 1>
    arcpy.sfa.DissolveBoundaries( ScratchGDB + "\\fishclipB" , ScratchGDB + "\\fishclipC")  
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sfa.py", line 286, in DissolveBoundaries
    raise e
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sfa.py", line 283, in DissolveBoundaries
    retval = convertArcObjectToPythonObject(gp.DissolveBoundaries_sfa(*gp_fixargs((inputLayer, outputName, dissolveFields, summaryFields), True)))
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 520, in <lambda>
    return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Traceback (most recent call last):
 File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\dissolveboundaries_sa.py", line 34, in <module>
    output = ga.run_portal_tool(params)
 File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\geoanalyticssoap.py", line 93, in run_portal_tool
    self.add_toolbox()
 File "c:\program files\arcgis\pro\Resources\ArcToolbox\scripts\geoanalyticssoap.py", line 77, in add_toolbox
    arcpy.ImportToolbox(self.toolbox)
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 179, in ImportToolbox
    return import_toolbox(input_file, module_name)
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\toolbox_code.py", line 563, in import_toolbox
    toolbox = gp.createObject("Toolbox", tbxfile)
 File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 397, in createObject
    self._gp.CreateObject(*gp_fixargs(args, True)))
 
Failed to execute (DissolveBoundaries).
0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

If you can download and/or work with locally stored data,

How Dissolve (Data Management) works—ArcGIS Pro | Documentation

How Dissolve (Data Management) works—ArcGIS Pro | Documentation

does the same thing


... sort of retired...
0 Kudos
Andrew_P
Emerging Contributor

Hey Dan - Thanks for your speedy response! Prior explorations of Dissolve suggest that the Dissolve and Pairwise Dissolve functions will combine all polygons into a single feature if no dissolve field is provided to specify groupings on which to dissolve - "The field or fields on which features will be aggregated. If no fields are specified, the tool will dissolve all features together." - Dissolve tool description.

It does not appear to work in a purely spatial association mode which is why I am attempting to use DissolveBoundaries.

0 Kudos