I created a table in Base. It has only one column. Then I clicked on “Index design” button to create a unique index. I named the index “my_index” and added a column to it (the only one column this table has) and checked the “Unique” checkbox. Upon saving, an error occurrs:
SQL Status: 3409
Error code: -2147217903
Invalid field definition ‘my_index’ in definition of index or relationship.
So, how to add a unique index to a table?
[Edit]
LO version is 4.4.4.3
Also, this database was created as a result of this solution (it’s a connected accdb database)
The exact process of adding index which results in error is this:
-
Create a new table
-
Add column MyID of type Integer [Long]. Available types are:
-
Save the table. Base asks for table name and whether to add primary key. Don’t add the primary key, just save. In order to edit the table Base needs either a primary key OR a unique index. The error is for the unique index.
-
Click “Index Design” and “New Index”. Add the index and save.
-
Error occurrs. (I forgot to check “Unique” on the screenshots, but the error is regardless of the "Unique setting)