sleuth

OpenTable

Discussion created by sleuth on Sep 20, 2011
Latest reply on Jul 25, 2012 by olivoyer
I am trying to open a .CSV in c# using the IFeatureWorkspace.OpenTable, but for some reason I am getting an error that has no error message:
((System.Runtime.InteropServices.ExternalException)(com)).ErrorCode -2147220655.

Here is the code:

IWorkspaceFactory pFact;
IFeatureWorkspace pFeatws;
ITable pTable;     // Table to Geocode.
//IWorkspace pWorkspace;
           
// Create pTable from .csv file...
pFact = new TextFileWorkspaceFactory();
pFeatws = (IFeatureWorkspace)pFact.OpenFromFile(LocalFolder, 0);

//pFeatws = (IFeatureWorkspace)pWorkspace;
pTable = pFeatws.OpenTable(CSVFile);    //open the .csv file...

This seems to work with other clients, but this is the first one that I Have created the GeoCoding.

Outcomes