Error using WorkspaceValExtension

338
1
Jump to solution
05-01-2019 11:29 PM
M_DJohnson
Occasional Contributor

We have to count one specific field and compare with total number of features in the dataset that can do but to log report it is throwing an error given below. This error is just a record but not belongs to any FeatureClass.

Error: "Error getting table . Unable to get row for OID 0."


Snippet

Interface :IPLTSCNTWorkspaceValExtension

IPLTSError2 ipReviewerResult = new PLTSErrorClass() as IPLTSError2; 
ipReviewerResult.ErrorKind = pltsValErrorKind.pltsValErrorKindStandard;                 
ipReviewerResult.LongDescription = "CC feature count [" + ccFeatureCount + "] is more than Total Feature count [" + TotalFeature + "]"; 
ipRevResultCollection.AddError(ipReviewerResult);

Is it mandatory to assign value to 

ipReviewerResult.QualifiedTableName = ipSourceDataset.Name;

0 Kudos
1 Solution

Accepted Solutions
M_DJohnson
Occasional Contributor

By sending different layer names through arguments in configuration it is solved!!!

View solution in original post

0 Kudos
1 Reply
M_DJohnson
Occasional Contributor

By sending different layer names through arguments in configuration it is solved!!!

0 Kudos