Hi,
I'm attempting to import a site template into a new instance of DNN (7.4.2). I'm getting the following error upon import:
I've attempted to recreate the instance multiple times to no avail. Any help would be appreciated
InnerMessage:The INSERT statement conflicted with the FOREIGN KEY constraint "FK_TabPermission_Permission". The conflict occurred in database "afpims-dod-3", table "dbo.Permission", column 'PermissionID'. The statement has been terminated.
InnerStackTrace:
at System.Data.SqlClient.SqlConnection. (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.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteScalar()
at PetaPoco.Database.ExecuteScalar[T](String sql, Object[] args)
at DotNetNuke.Data.PetaPoco.PetaPocoHelper.ExecuteScalar[T](String connectionString, CommandType type, String sql, Object[] args)
at DotNetNuke.Data.DataProvider.AddTabPermission(Int32 tabId, Int32 permissionId, Int32 roleID, Boolean allowAccess, Int32 userId, Int32 createdByUserID)
at DotNetNuke.Security.Permissions.PermissionProvider.SaveTabPermissions(TabInfo tab)
at DotNetNuke.Security.Permissions.TabPermissionController.SaveTabPermissions(TabInfo tab)
at DotNetNuke.Entities.Tabs.TabController.AddTabInternal(TabInfo tab, Int32 afterTabId, Int32 beforeTabId, Boolean includeAllTabsModules)
at DotNetNuke.Entities.Tabs.TabController.AddTab(TabInfo tab, Boolean includeAllTabsModules)
at DotNetNuke.Entities.Tabs.TabController.DeserializeTab(XmlNode tabNode, TabInfo tab, Hashtable tabs, Int32 portalId, Boolean isAdminTemplate, PortalTemplateModuleAction mergeTabs, Hashtable modules)
at DotNetNuke.Entities.Portals.PortalController.ParseTab(XmlNode nodeTab, Int32 PortalId, Boolean IsAdminTemplate, PortalTemplateModuleAction mergeTabs, Hashtable& hModules, Hashtable& hTabs, Boolean isNewPortal)
at DotNetNuke.Entities.Portals.PortalController.ParseTabs(XmlNode nodeTabs, Int32 PortalId, Boolean IsAdminTemplate, PortalTemplateModuleAction mergeTabs, Boolean IsNewPortal)
at DotNetNuke.Entities.Portals.PortalController.ParseTemplateInternal(Int32 portalId, String templatePath, String templateFile, Int32 administratorId, PortalTemplateModuleAction mergeTabs, Boolean isNewPortal, LocaleCollection& localeCollection)
at DotNetNuke.Entities.Portals.PortalController.ParseTemplateInternal(Int32 portalId, String templatePath, String templateFile, Int32 administratorId, PortalTemplateModuleAction mergeTabs, Boolean isNewPortal)
at DotNetNuke.Entities.Portals.PortalController.ParseTemplate(Int32 portalId, PortalTemplateInfo template, Int32 administratorId, PortalTemplateModuleAction mergeTabs, Boolean isNewPortal)
at DotNetNuke.Modules.Admin.Portals.SiteWizard.OnWizardFinishedClick(Object sender, WizardNavigationEventArgs e)
at System.Web.UI.WebControls.Wizard.OnFinishButtonClick(WizardNavigationEventArgs e)
at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)