Band new v2.8001 install - Database Error: reference-key violation when adding a product

Posted By simonrl Fri 13 Feb 2015
Add to Favorites0

Band new v2.8001 install - Database Error: reference-key violation...

Author Message
simonrl
 Posted Fri 13 Feb 2015
Supreme Being

Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)

Group: Forum Members
Last Active: Tue 23 Feb 2021
Posts: 18, Visits: 88
I've just set up a brand new install of v2.8001.

Server 2012 + SQL Server 2012

I set up a new database, without test data. I then added a bunch of categories (successfully) and tried adding a single product. Which failed with:

"Database Error: reference-key violation."

I tried simplifying my product data and linking to just a single category in case that was the cause - but it did not fix it.

So I deleted the site in IIS and deleted the database, rebooted and tried over from scratch.

This time I created a single category (successfully again) and then went straight to adding a single product with an absolute minimum of information.

Again it the "Database Error: reference-key violation." error.

Is anybody else getting this with v2.8001?

I can't progress the project because I can't get past adding a first product.
Fri 13 Feb 2015 by simonrl
Paul Marked As Answer
 Posted Fri 13 Feb 2015
große Käse

große Käse - (522,350 reputation)große Käse - (522,350 reputation)große Käse - (522,350 reputation)große Käse - (522,350 reputation)große Käse - (522,350 reputation)große Käse - (522,350 reputation)große Käse - (522,350 reputation)große Käse - (522,350 reputation)große Käse - (522,350 reputation)

Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807, Visits: 2,748
Can you try running this SQL on the db -

ALTER TABLE [dbo].[tblKartrisProducts] DROP CONSTRAINT [CK_Products_VersionsSortDirection]
GO


--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb
simonrl
 Posted Fri 13 Feb 2015
Supreme Being

Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)Supreme Being - (12,892 reputation)

Group: Forum Members
Last Active: Tue 23 Feb 2021
Posts: 18, Visits: 88
Yes, that worked. Many thanks Paul.

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top