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 ...Unable to Add New Pages or Move PagesUnable to Add New Pages or Move Pages
Previous
 
Next
New Post
6/18/2016 4:01 PM
 

I am running DNN 7.3.4 on AZURE using SQL Server 12.0.2000.8.  I was in the process of moving, copying and rearranging pages within my website, http:www.thevwc.org, and then attempting to add new content when all of a sudden I started receiving the following error display at the website:

Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot bulk load. The bulk data stream was incorrectly specified as sorted or the data violates a uniqueness constraint imposed by the target table. Sort order incorrect for the following two rows: primary key of first row: (0, 213, 3, 0, <NULL>), primary key of second row: (0, 213, 3, -1, <NULL>). ---> System.Data.SqlClient.SqlException: Cannot bulk load. The bulk data stream was incorrectly specified as sorted or the data violates a uniqueness constraint imposed by the target table. Sort order incorrect for the following two rows: primary key of first row: (0, 213, 3, 0, <NULL>), primary key of second row: (0, 213, 3, -1, <NULL>). 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.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, Boolean describeParameterEncryptionRequest) 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, Int32 timeout, String sql, Object[] args) at DotNetNuke.Data.SqlDataProvider.ExecuteScalar[T](String procedureName, Object[] commandParameters) at DotNetNuke.Data.DataProvider.AddTabAfter(TabInfo tab, Int32 afterTabId, Int32 createdByUserID) at DotNetNuke.Entities.Tabs.TabController.AddTabInternal(TabInfo tab, Int32 afterTabId, Int32 beforeTabId, Boolean includeAllTabsModules) at DotNetNuke.Entities.Tabs.TabController.AddTabAfter(TabInfo tab, Int32 afterTabId) at DotNetNuke.Modules.Admin.Tabs.ManageTabs.SaveTabData(String strAction) at DotNetNuke.Modules.Admin.Tabs.ManageTabs.cmdUpdate_Click(Object Sender, EventArgs e) --- End of inner exception stack trace ---

 The following is the same type error from the Event Log:

ModuleId:-1

ModuleDefId:-1

FriendlyName:

ModuleControlSource:DesktopModules/Admin/Tabs/ManageTabs.ascx

AssemblyVersion:7.3.4

PortalID:0

PortalName:The Villages Woodworkers Club

UserID:328

UserName:[email protected]

ActiveTabID:217

ActiveTabName:Turning Techniques

RawURL:/Media-Gallery/Videos/Lathe-And-Turning-Videos/Turning-Techniques/ctl/Tab/activeTab/settingTab?popUp=true

AbsoluteURL:/Default.aspx

AbsoluteURLReferrer:http://www.thevwc.org/Media-Gallery/Videos/Lathe-And-Turning-Videos/Turning-Techniques/ctl/Tab/activeTab/settingTab?popUp=true

UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:50.0) Gecko/20100101 Firefox/50.0

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:58eb3c42-458a-45a6-bed1-4b7cbbb32d40

InnerException:Cannot bulk load. The bulk data stream was incorrectly specified as sorted or the data violates a uniqueness constraint imposed by the target table. Sort order incorrect for the following two rows: primary key of first row: (0, 213, 3, 0, <NULL>), primary key of second row: (0, 213, 3, -1, <NULL>).

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:System.Data.SqlClient.SqlConnection.

StackTrace:

Message:

DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot bulk load. The bulk data stream was incorrectly specified as sorted or the data violates a uniqueness constraint imposed by the target table. Sort order incorrect for the following two rows: primary key of first row: (0, 213, 3, 0, <NULL>), primary key of second row: (0, 213, 3, -1, <NULL>). ---> System.Data.SqlClient.SqlException: Cannot bulk load. The bulk data stream was incorrectly specified as sorted or the data violates a uniqueness constraint imposed by the target table. Sort order incorrect for the following two rows: primary key of first row: (0, 213, 3, 0, <NULL>), primary key of second row: (0, 213, 3, -1, <NULL>).
   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.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, Boolean describeParameterEncryptionRequest)
   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, Int32 timeout, String sql, Object[] args)
   at DotNetNuke.Data.SqlDataProvider.ExecuteScalar[T](String procedureName, Object[] commandParameters)
   at DotNetNuke.Data.DataProvider.AddTabAfter(TabInfo tab, Int32 afterTabId, Int32 createdByUserID)
   at DotNetNuke.Entities.Tabs.TabController.AddTabInternal(TabInfo tab, Int32 afterTabId, Int32 beforeTabId, Boolean includeAllTabsModules)
   at DotNetNuke.Entities.Tabs.TabController.AddTabAfter(TabInfo tab, Int32 afterTabId)
   at DotNetNuke.Modules.Admin.Tabs.ManageTabs.SaveTabData(String strAction)
   at DotNetNuke.Modules.Admin.Tabs.ManageTabs.cmdUpdate_Click(Object Sender, EventArgs e)
   --- End of inner exception stack trace 

What is the method(s) of correcting this error?

 


Regards
Hans
 
New Post
6/19/2016 5:11 AM
 
there are two records violating a unique key constraint (which might have been disabled or with nocheck before).
Fix the duplicate records. Are you using TurboDNN on this installation?

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
6/19/2016 8:09 AM
 

 Thank  you for your reply.

I understand that there are two records....but in which table and which indices.  Yes, using DNN Turbo.


Regards
Hans
 
New Post
6/19/2016 9:03 AM
 
it seems to be Tabs table, but I can't find a matching index in latest version of TurboDNN.
in your database, does sproc AddTabAfter execute AddTabAtPos? I overhauled this area about 6 months ago to avoid duplicate records.

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
6/25/2016 10:40 AM
 

Sebastain,

 

Yes my current sproc AddTabAfter calls the insert procedure as you had mentioned.  I cleared the database by first exporting the page(s) that were causing the conflict, then deleting the affected pages, then going to the database an deleting the affected rows, emptying the recycle bin and then importing the pages.  This seems to have cleared up the issue.

However, I am not sure what causes this issue.


Regards
Hans
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Unable to Add New Pages or Move PagesUnable to Add New Pages or Move Pages


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out