AnsweredAssumed Answered

how to define MULTIPLE DissolveTool.Dessolve_fields

Question asked by Airfoil on Jan 25, 2012
Latest reply on Jan 25, 2012 by csny490
When I attempt to define more than one dissolve_field I get an error. If I define only one, it runs just fine. The documentation http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Dissolve/00170000005n000000/ indicates that the use of multiple dissolve_fields and/or statistics_fields is possible but I've tried every combination of input parameters that I can think of but so far, it only works with a single field. Below is the VB.Net code I've used with the message (error) below each.

Has anyone successfully implemented this using more that one dissolve_field and/or statistics_fields?


CODE THAT FAILS:

                Dim DissolveTool As ESRI.ArcGIS.DataManagementTools.Dissolve = New Dissolve

                DissolveTool.in_features = wksSource & "\" & fClassFloorArea_S
                DissolveTool.out_feature_class = wksDestination & "\" & fClassTemp
                DissolveTool.dissolve_field = "instln_id, facil_id"
                DissolveTool.multi_part = True
                RunTool(GP, DissolveTool, Nothing)


ERROR MESSAGE:

Failed to execute. Parameters are not valid.
ERROR 000728: Field instln_id, facil_id does not exist within table
Failed to execute (Dissolve).


CODE THAT WORKS:

                Dim DissolveTool As ESRI.ArcGIS.DataManagementTools.Dissolve = New Dissolve

                DissolveTool.in_features = wksSource & "\" & fClassFloorArea_S
                DissolveTool.out_feature_class = wksDestination & "\" & fClassTemp
                DissolveTool.dissolve_field = "facil_id"
                DissolveTool.multi_part = True
                RunTool(GP, DissolveTool, Nothing)


SUCCESSFUL MESSAGE:

Executing: Dissolve ...

Start Time: Wed Jan 25 12:12:54 2012
Sorting Attributes...
Dissolving...
Succeeded at Wed Jan 25 12:12:56 2012 (Elapsed Time: 2.00 seconds)

Outcomes