U4-3310 - Installer fails with starterkits

Created by Per Ploug 04 Nov 2013, 10:33:37 Updated by Per Ploug 04 Nov 2013, 13:26:13

Trying to install the Txt startkit on sql CE, and it fails with:

A duplicate value cannot be inserted into a unique index. [ Table name = cmsPropertyTypeGroup,Constraint name = PK_cmsPropertyTypeGroup ]

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.SqlServerCe.SqlCeException: A duplicate value cannot be inserted into a unique index. [ Table name = cmsPropertyTypeGroup,Constraint name = PK_cmsPropertyTypeGroup ]

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlCeException (0x80004005): A duplicate value cannot be inserted into a unique index. [ Table name = cmsPropertyTypeGroup,Constraint name = PK_cmsPropertyTypeGroup ]] System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr) +48 System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor) +297 System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options) +646 System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery() +21 StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery() +60 Umbraco.Core.Persistence.<>c__DisplayClass1.b__0() +55 Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction(Func1 func) +170 Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy cmdRetryPolicy, RetryPolicy conRetryPolicy) +118 Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy retryPolicy) +52 Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command) +48 Umbraco.Core.Persistence.Database.Insert(String tableName, String primaryKeyName, Boolean autoIncrement, Object poco) +1662 Umbraco.Core.Persistence.Database.Insert(Object poco) +51 Umbraco.Core.Persistence.Repositories.ContentTypeBaseRepository2.PersistNewBaseContentType(ContentTypeDto dto, IContentTypeComposition entity) +1669 Umbraco.Core.Persistence.Repositories.ContentTypeRepository.PersistNewItem(IContentType entity) +286 Umbraco.Core.Persistence.Repositories.RepositoryBase2.PersistNewItem(IEntity entity) +49 Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit(Action1 transactionCompleting) +232 Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit() +7 Umbraco.Core.Services.ContentTypeService.Save(IEnumerable1 contentTypes, Int32 userId) +292 Umbraco.Core.Services.PackagingService.ImportContentTypes(XElement element, Boolean importStructure, Int32 userId) +685 Umbraco.Core.Services.PackagingService.ImportContentTypes(XElement element, Int32 userId) +11 umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +1809 Umbraco.Web.Install.InstallPackageController.InstallBusinessLogic(Guid kitGuid, Int32 manifestId, String packageFile) +78 lambda_method(Closure , ControllerBase , Object[] ) +212 System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +182 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +27 System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +28 System.Web.Mvc.Async.<>c__DisplayClass81.b__7(IAsyncResult _) +10

Comments

esunxray 04 Nov 2013, 10:53:13

I have posted one issue like this.


Priority: Normal

Type: Bug

State: Fixed

Assignee: Per Ploug

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.0.0

Sprint:

Story Points:

Cycle: