I added in a very simple table to my existing DA/WPF app which stores user notes, and has a single integral key value to link to other tables. Very very simple, yet i’m getting a DA/server exception which states this:
An exception occurred on the server: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
this is occuring on my DALINQ statement which is this:
cnl := (from nrec in fDataModule.DataAdapter.GetTable<campnotes>
where nrec.CampaignID.Equals(crec.CampaignID)
select nrec).ToList;
this table is dirt simple - three fields. The CampaignID integral key field, the ‘Notes’ field, and some extra unused space in a third field for future expansion. All three fields are flagged as non-null. There is an existing record for my test scenario, so this query should return a single record, but instead i’m getting this exception. Any idea why?
I’m using the latest Elements and DA beta releases, in VS 2019, latest version.
This error means that data returned by the database server is conflicting with the constraints applied by the Schema. The most common scenario is that database returns NULL for a schema field marked as Required (ie not accepting NULL values).
Try to mark all fields in that Schema Table as accepting null values (uncheck the Required option and starting with that 3rd unused field) and check hat is actually being returned by the server.
Or send us the database + .daSchema file so we’ll investigate it by ourselves.
Btw if possible please try to provide exception stacktraces, bot server and client-side.
OK, so i started my day. We have both our “live” system here, and a “test network” where i test out new things and changes. I went to the relativity server i have running on the test network via the admin tool to make sure nohting had changed. I logged in, and for soem reason this morning my domain is completely gone from the relativity server. how could this happen? Where is this data stored? Something got messed up. Help!
Unfortunately, the Log option doesn’t even appear when i log in to the admin tool. All i see is the server name, and the ‘Domains’ node with no domains under it. that’s all.
For some reason (f.e. misconfiguration) user used to log in into AdminTool has a filter applied that limits domains this user can see.
Stop Relativity instance, open the file c:\ProgramData\RemObjects Software\Relativity\LoginProvider.config and make sure that SecurityRoles parameter for your user is set to *
Corresponding confi file line should look like <Configuration Parameter="SecurityRoles" Value="*" />