This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, |
|
|
Every entity in LightSpeed must have an Id; therefore your Source table must have an Id column. I am not sure why you would have problems adding items to the redesigned Source table, but my guess is that you have specified the IdentityMethod as IdentityColumn, but your Id column is not marked as autoincrement / autogenerate / identity in the database. IdentityColumn means LightSpeed does not send the Id to the database; if the database is not expecting to fill in the Id for itself then this will cause a database error. LightSpeed doesn't provide a built-in way of guaranteeing uniqueness of the UserId/SourceDetailsId pair. You could do this through application logic, maybe with a custom validation, or by creating a uniqueness constraint at the database level and catching the exception. |
|