FOREIGN KEY constraint 'ac_Warehouses ?Bug or ??
Posted: Wed Apr 30, 2008 10:46 am
I was checking some shipping conditions - I set up a multiple shipping locations condition, printed it out, then did not follow up by closing out the order or backing out and I'm throwing an exception ... yesterday we saw a similar problem - we cleared the cart database and resolved the problem. That one had a valid reason: Items in the cart for a product with options, removed the options without clearing the database.
Today I'm getting this:
Today I'm getting this:
I can get to other pages but when I do anything related to add cart, or view cart the message reoccurs. Is there a way to reset the cart without having to call my database guy? Could this be a bug?INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'ac_Warehouses_ac_BasketShipments_FK1'. The conflict occurred in database '{StoreName}', table 'ac_Warehouses', column 'WarehouseId'. The statement has been terminated. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'ac_Warehouses_ac_BasketShipments_FK1'. The conflict occurred in database '{StoreName}', table 'ac_Warehouses', column 'WarehouseId'. The statement has been terminated.