laptop and a wrench

Bug

Cannot use ITable directly for output parameters of geoprocessing operations.

Last Published: August 19, 2020 ArcGIS for Desktop
Bug ID Number NIM051925
SubmittedDecember 10, 2009
Last ModifiedFebruary 11, 2025
Applies toArcGIS for Desktop
Version found9.3.1
Program languageC#
Operating SystemWindows OS
Operating System VersionXP
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle.  If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

For File based datasources provide the path to the table as a string. For SDE data create a temporary connection as below.Geoprocessor geoProcessor = new Geoprocessor();geoProcessor.OverwriteOutput = true;IPropertySet ps = new PropertySetClass();ps.SetProperty("server", "server");ps.SetProperty("instance", "instance");ps.SetProperty("database", "database");ps.SetProperty("version", "version");ps.SetProperty("user", "user");ps.SetProperty("password", "password");IWorkspaceFactory WorkFact = new SdeWorkspaceFactoryClass();IFeatureWorkspace workspace = (IFeatureWorkspace)WorkFact.Open(ps, 0);IFeatureClass featureClass = workspace.OpenFeatureClass("aa");ITable table = workspace.OpenTable("SOMETABLE");WorkFact.Create(@"C:\temp", "connect.sde", ps, 0);string connectionFile = @"C:\temp\connect.sde";Frequency frequency = new Frequency(); frequency.in_table = featureClass;frequency.out_table = connectionFile + "\\" + ((IDataset)table).Name;frequency.frequency_fields = "OBJECTID";geoProcessor.Execute(frequency, null);for (int i = 0; i < geoProcessor.MessageCount; ++i){ string message = geoProcessor.GetMessage(i); Console.WriteLine(message);}File.Delete(connectionFile);

Steps to Reproduce

Bug ID: NIM051925

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options