Data Reviewer: Unique composite value check

809
2
05-24-2018 07:06 PM
SeetharamVeeramachaneni
New Contributor

In Data Reviewer Unique ID Check can be used to check if an attribute is unique in feature class.

I have a requirement to create Data Reviewer batch job to check combination of more than one attributes in feature class is unique.

CityStreet
MadisonGlenwood Ave
MadisonW Main St
Sun PrairieE Main St
Sun PrairieE Main St

In above example combination of city and street should be unique. Data reviewer should display row # 3 and 4 as errors.

Any pointers or help is greatly appreciated. 

0 Kudos
2 Replies
MichelleJohnson
Esri Contributor

You can use the table to table attribute check to find these kind of duplicates.  Select the fields you want to do an attribute comparison and then also include ObjectID <> ObjectID.

Also, when using the table to table attribute check, it is best to index the fields you are using in your attribute comparison for better performance.

0 Kudos
SeetharamVeeramachaneni
New Contributor

Thanks Michelle..!

I implemented table to table attribute check. This check is good as long as both city and street fields are not null, if any one field is null or blank this check fails.

CityStreet
MadisonGlenwood Ave
MadisonW Main St
Sun Prairie
SunPrairie
<NULL>E Main St
<NULL>E Main St

As a work around, I created new filed with concatenated value of city and street and implemented Unique ID check.

But I would like to avoid creating new field if possible.

0 Kudos