BUG

Calling IDataStatistics.UniqueValueCount prior to IDataStatistics.UniqueValues returns a value of zero

Last Published: April 25, 2020

Description

When IDataStatistics.UniqueValueCount is called on the DataStatistics object, before IDataStatistics.UniqueValues is called, it returns a value of zero even though there may be unique values.

Cause

This is because the internal variable holding the UniqueValueCount is not populated until UniqueValues has been called.

Workaround

Call IDataStatistics.UniqueValues prior to calling IDataStatistics.UniqueValueCount.

    Article ID:000004396

    Software:
    • ArcMap 8 x
    • ArcMap 9 x

    Receive notifications and find solutions for new or common issues

    Get summarized answers and video solutions from our new AI chatbot.

    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