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...There is already an object named There is already an object named 'GetPackageTypes' in the database. --- DNN 4.9.5 - 5.2.3 Error
Previous
 
Next
New Post
3/26/2010 9:22 AM
 

Hi,

 

I am getting the following error when attempting to upgrade my website on my production machine. The odd thing is that on my test server the upgrade works fine. I checked file permissions on my production machine and test machine, and the root of my website has the same permissions on both machines. I ran the upgrade on my production server, but it failed. I realized I was authenticating to the database using the sa user account in my webconfig on my test server, but on my production server I was authenticating using a user ID "BrookhavenDNN" that had DBOwner priveliges to my website db.  After the upgrade failed, I restored my website (it worked fine after restor), but I noticed in [websiteroot]\Providers\DataProviders\SqlDataProvider there were "05.00.00.SqlDataProvider" files through "05.02.03.SqlDataProvider" without any corresponding log files. Before the failed upgrade, these files were not present, there were only SqlDataProvider files up to 4.9.5(my current version of DNN) with log files. I don't think this is a problem because I grabbed a back-up of website after the failed production upgrade and ran the upgrade on my test without a problem. The next day I changed my the connection settings in my webconfig to login to the db using the sa user account on my production server, however the upgrade failed with the below log errors.  I am getting errors on the 5.00.00, 5.01.01, and 5.02.00 logs and not the rest of them.

 

5.00.00 log

System.Data.SqlClient.SqlException: There is already an object named 'GetPackageTypes' in the database.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(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)

5.01.01 log

System.Data.SqlClient.SqlException: There is already an object named 'Tmp_Packages' in the database.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(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)

 

5.02.00 log

System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'FriendlyName' in table 'dbo.Schedule' is specified more than once.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(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)
 

 

Thanks in advance!

 

Matt

 
New Post
3/26/2010 1:16 PM
 
Hi I would restore from backup (database/folders/files) and start the upgrade again. Make sure you have the exact "snapshot" of what it was before. Thanks


Alex Shirley


 
New Post
3/31/2010 4:33 PM
Accepted Answer 

I upgraded on a test server succesfully, moved db and web folder over to production, and this worked. Not too sure why the upgrade kept failing on production, but my site is now upgraded with this workaround.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...There is already an object named There is already an object named 'GetPackageTypes' in the database. --- DNN 4.9.5 - 5.2.3 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