AnsweredAssumed Answered arcobjects run "table to excel" gp get error

Question asked by littleleaf on Sep 29, 2014
Latest reply on Sep 30, 2014 by littleleaf

Hello everybody,


I have successfully used arcobjects to run several geoprocessing tools, but when I ran "Table to excel", I got the following error:



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)

My code is as follows:



     Dim GP As GeoProcessor = New GeoProcessor()

     Dim parameters As IVariantArray = New VarArray




          GP.Execute("TableToExcel_conversion", parameters, Nothing)

Catch ex As Exception

          logger.Error("ExportSegmentToExcel: " + ex.ToString)

End Try

Is this caused by the code or library? Thanks for the attention.