Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index violation error
Message
De
17/12/2008 16:58:59
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01367400
Message ID:
01368340
Vues:
7
>>>>In a network application on a Novel network the user occasionally gets the error message "Table failed to update table. Unique index viiolation:."/ Usually when trying to add data. Any idea why would be appreciated.
>>>
>>>Claude,
>>>
>>>Do you have a unique index in your table? Usually it doesn't make sense to have unique indexes, make sure you're not confusing it with the candidate index.
>>
>>I change a candidate index to a regular index and had to add ah explicit SQL Update command to avoid duplicating the record/ I also removed the implicit edit command from my find command so that user has to explicitly edit the record to avoid the Uniqueness violation error.
>>
>>I do not understand why how the one gets to the record would make a difference when it is saved.
>>
>>the user is testing now.
>
>It all may depend on your design, do you use buffering or not, etc.
>
>But you don't use UNIQUE index, correct? You should not use it, the candidate index was OK, though, to avoid duplicity (but you should trap against the other error yourself then).

i use a Candidate index, the error seems to be related to my record command class.which contains the add and edit commands. What I do not understand is why the save command gets and error if I find a record using a valid method and the drop down which uses an interactive change method.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform