migrating to 10.1 - Error System.Runtime.InteropServices.COMException (0x80004005)

501
0
02-04-2013 06:08 AM
EricLussier
New Contributor III
Hi,

I'm trying to migrate code from arcgis 10.0 to 10.1 The last line of that code "pGp.Execute("Append_management", oParameters, Nothing)" generates a
System.R[HTML][/HTML]untime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.

Someone could tell me why please? Thanks.

[HTML]
            Dim oParameters As IVariantArray = New VarArray
            Dim pGp As ESRI.ArcGIS.Geoprocessor.Geoprocessor = New ESRI.ArcGIS.Geoprocessor.Geoprocessor()
            '
            'Setting parameters list
            oParameters.RemoveAll()
            oParameters.Add(sSrcFullName1)  ' <in_path>
            oParameters.Add(sMergedFullName) ' <out_path>  
            oParameters.Add("NO_TEST")      ' <keyword>
            '
            Tools.DisplayMessage("Append the Shape file: " & sSrcShortName1 & " to: " & sMergedShortName)
            Tools.DisplayMessage(" ")
            pGp.Execute("Append_management", oParameters, Nothing)  [/HTML]
Error in MergingShapeFiles(): System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at ESRI.ArcGIS.Geoprocessing.GeoProcessorClass.Execute(String Name, IVariantArray ipValues, ITrackCancel pTrackCancel)
0 Kudos
0 Replies