laptop and a wrench

Bug

index_mask for SE_table_rebuild_index is not defined in SDE C client.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM005766
SubmittedDecember 20, 2006
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
StatusNon-Reproducible

Description

A C-API program that rebuilds indexes on tables using SE_table_rebuild_index cannot be compiled even though it uses a valid index mask.

Supported index masks include:

SE_INDEX_RASTER - Rebuilds the indexes for the Raster tables.
SE_INDEX_SPATIAL - Rebuilds the spatial index table.
SE_INDEX_XML - Rebuilds the XML indexes.
SE_INDEX_VERSIONED - Rebuilds the indexes for the Adds and Deletes tables.
SE_INDEX_ALL - Rebuilds all valid indexes on the ArcSDE table.

The compile fails with the following error message:

"Index_mask for SE_table_rebuild_index is not defined in SDE C client"

Cause

The index mask constants are not defined in the ArcSDE C-API include files.

Workaround

To compile and build a program that uses SE_table_rebuild_index, define the following constants in the code:

Code:
#define SE_INDEX_RASTER (1)
#define SE_INDEX_SPATIAL (1<<1)
#define SE_INDEX_VERSIONED (1<<2)
#define SE_INDEX_XML (1<<3)
#define SE_INDEX_ALL (1<<4)

Steps to Reproduce

Bug ID: NIM005766

Software:

  • No Product Found

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