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...Upgrading DNN P...Upgrading DNN P...06.01.05.SqlDataProvider error06.01.05.SqlDataProvider error
Previous
 
Next
New Post
4/6/2012 10:09 AM
 

Hi,

It appears that the 06.01.05.SqlDataProvider attempts to make changes to non-core DNN tables.  I received this error when upgrading from 6.1.4 to 6.1.5:

System.Data.SqlClient.SqlException: Foreign key 'FK_VRS_CostCenter_Roles_Roles' references invalid column 'RoleID' in referencing table 'VRS_CostCenter_Roles'.
Could not create constraint. See previous errors.
Table Name: UserRoles Constraint:FK_UserRoles_Roles
Table Name: VRS_CostCenter_Roles Constraint:FK_VRS_CostCenter_Roles_Roles
ALTER TABLE UserRoles ADD CONSTRAINT FK_UserRoles_Roles FOREIGN KEY (RoleID) REFERENCES dbo.Roles (RoleID) ON UPDATE NO ACTION ON DELETE CASCADE
ALTER TABLE VRS_CostCenter_Roles ADD CONSTRAINT FK_VRS_CostCenter_Roles_Roles FOREIGN KEY (RoleID) REFERENCES dbo.Roles (RoleID) ON UPDATE NO ACTION ON DELETE NO ACTION
   at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
   at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)

The tables referenced in the error message are non-core DNN tables...

 

 

 

 

 
New Post
4/6/2012 11:59 AM
 

Allan,

I've seen several similar posts in the forums/Community Exchange relating to this same issue when upgrading to 6.1.5. In the 06.01.05.SqlDataProvider script the primary keys on the Portals and the Roles tables are dropped then recreated as clustered primary keys. Before that can be done, any foreign key constraints on these two tables must be first dropped then recreated after the clustered primary keys are created.

One of the posters had experienced this issue with the foreign key constraint placed by the "core" blog module. I tried several upgrades from 6.1.4 to 6.1.5 on a test site which already had the blog module installed but was not able to reproduce the issue.

Please enter the issue into Gemini as you are the first to report this that has a complete stack trace of the error.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/6/2012 3:31 PM
 

Thanks William -I have made an entry in Gemini. 

FYI - my custom module tables have no dependencies (i.e. constraints) on core DNN tables.  Weird .... 

 
New Post
4/11/2012 12:17 AM
 

Hi Allan,

Please read my response to your Gemini issue. If you replace the file 06.01.05.SqlDataProvider file in the DNN upgrade package by my new version, you should be able to upgrade without error! :-)

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...06.01.05.SqlDataProvider error06.01.05.SqlDataProvider 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