Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Custom module installation errorCustom module installation error
Previous
 
Next
New Post
3/18/2015 6:44 AM
 

Hi everyone,

 I am wondering if anyone can help me. I am working with a custom module on one of our sites, and I have uninstalled the module, but when I am trying to reinstall it I get the following error:

  StartJob Starting Installation

Info Starting Installation - IMUK.Products Categories

Info Starting Installation - Script

Info Begin Sql execution

Info Creating backup of previous version - 01.00.00.SqlDataProvider

Info Created - 01.00.00.SqlDataProvider

Info Executing 01.00.00.SqlDataProvider

Info Start Sql execution: 01.00.00.SqlDataProvider file

Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException (0x80131904): The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_IMUK_PR_Products_IMUK_PRD_Cats". The conflict occurred in database "chiesiservicedb", table "dbo.IMUK_PRD_Cats", column 'CategoryId'. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script) ClientConnectionId:8e15c981-6e66-4118-a0fc-6ddcdcfc47f0 -- *************** Create relations (foreign keys) ****************** -- *** Create relations for IMUK_PR_Products *** if not exists (select * from dbo.sysobjects where id = object_id(N'FK_IMUK_PR_Products_IMUK_PRD_Cats') and OBJECTPROPERTY(id, N'IsForeignKey') = 1) ALTER TABLE dbo.IMUK_PR_Products ADD CONSTRAINT FK_IMUK_PR_Products_IMUK_PRD_Cats FOREIGN KEY (CategoryId) REFERENCES dbo.IMUK_PRD_Cats (CategoryId)

Info End Sql execution: 01.00.00.SqlDataProvider file

Info Finished Sql execution

Failure Installation Failed - Script

Info Installation Failed - IMUK.Products Categories

Info

Starting Installation - IMUK.Products Products

 

Could someone perhaps give me an idea what I need to check in the database please.

 
New Post
3/18/2015 2:40 PM
 
it is hard to say, but I assume the module tries to add a foreign key constraint from Products to Categories, which fails, as there are products with categoryID associated, which is not present in your categories table - most likely, because uninstall did not delete all tables and other data objects provided by the module.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Custom module installation errorCustom module installation error


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out