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...Administration ...Administration ...Permissions Issue with Site ImportPermissions Issue with Site Import
Previous
 
Next
New Post
2/21/2017 10:12 PM
 

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)

 

 
New Post
2/22/2017 2:41 PM
 
there seem to be a system_tab permission (from table permissions) missing, which is used in import file.
please check content of the table and tab permissions in your import file - maybe you are using different IDs or the import file is from an Evoq site, which supports additional permissions.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/23/2017 9:26 PM
 
Thanks for the quick response!

The initial site was from an Enterprise instance. I thought that may have something to do with it, but wasn't positive. Other than removing the ForeignKeyConstraint, is there any way to import an Enterprise site into a Community instance?
 
New Post
2/23/2017 9:32 PM
 
I'm sorry if this double posts....

Thank you very much for your quick response.

The exported site was from an instance that was initially Enterprise. I thought that may be the issue, but wasn't positive. Other than removing the Foreign Key constraint on the table, is there any way to import a site from Enterprise to a Community instance?
 
New Post
2/24/2017 4:18 PM
 
unfortunately, import is not very tolerant on features included in the template, which are not supported by the importing application, sorry.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Permissions Issue with Site ImportPermissions Issue with Site Import


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