Select to view content in your preferred language

Unique indexes cannot be specified for multiversion tables

3758
2
Jump to solution
06-14-2016 02:22 AM
HaniDraidi
Frequent Contributor

I have an existing table in an oracle enterprise GDB, when I try to enable this table as versioned, I get an error that says: "unique indexes cannot be specified for multiversion tables".

What might be the issue here?

Any help is highly appreciated!

Hani

Clip_1557.jpg

0 Kudos
1 Solution

Accepted Solutions
ChristianWells
Esri Regular Contributor

Hi Hani,

Do you have any unique indexes specified on your feature class for columns other than OBJECTID?

The reason that multiversion tables cannot support unique indexes is because the delta tables that get created in this operation will support multiple rows for a single OBJECTID. Therefore, a unique index cannot be used as the values in the column will most likely repeat.

For example in table 'Streets' with columns OBJECTID, NAME, LENGTH, SHAPE the following row exists:

1, Main St, 1.234, Shape

If editor 'A' modifies the length field the delta tables will have a new entry:

1, Main St, 2.567, Shape

If editor 'B' modifies it after editor 'A' but changes the length, the new delta table will look like this:

1, Main St, 2.567, Shape

1, Main St, 2.789, Shape

This shows that if a unique index was built on the NAME column, the delta tables would error out frequently with every insert or update.

View solution in original post

2 Replies
ChristianWells
Esri Regular Contributor

Hi Hani,

Do you have any unique indexes specified on your feature class for columns other than OBJECTID?

The reason that multiversion tables cannot support unique indexes is because the delta tables that get created in this operation will support multiple rows for a single OBJECTID. Therefore, a unique index cannot be used as the values in the column will most likely repeat.

For example in table 'Streets' with columns OBJECTID, NAME, LENGTH, SHAPE the following row exists:

1, Main St, 1.234, Shape

If editor 'A' modifies the length field the delta tables will have a new entry:

1, Main St, 2.567, Shape

If editor 'B' modifies it after editor 'A' but changes the length, the new delta table will look like this:

1, Main St, 2.567, Shape

1, Main St, 2.789, Shape

This shows that if a unique index was built on the NAME column, the delta tables would error out frequently with every insert or update.

HaniDraidi
Frequent Contributor

Many Thanks Christian for the valuable elaboration.

Actually I don't have unique index on the table. I am wondering if there is any solution for this problem

Your help is highly appreciated!

0 Kudos