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...SQL Exception on upgrade from 7.0.3 to 7.1.2SQL Exception on upgrade from 7.0.3 to 7.1.2
Previous
 
Next
New Post
10/20/2013 9:35 PM
 

Hi Everyone.

When I try to upgrade one of my sites from 7.0.3 to 7.1.2 (basically to any version higher than 7.0.3) I am getting the following exception:

--------------------------------------------------------------------------------------------------------------------------------------------

System.Data.SqlClient.SqlException (0x80131904): Cannot find the object "dbo.Journal" because it does not exist or you do not have permissions.
   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.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:a2128cf5-9eea-4139-bf7f-69014068ac36

/*****Journal Updates *****/
IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.Columns WHERE TABLE_NAME='Journal' AND COLUMN_NAME='CommentsDisabled')
BEGIN
ALTER TABLE dbo.Journal
ADD CommentsDisabled bit NOT NULL CONSTRAINT DF_Journal_CommentsDisabled DEFAULT 0
END

System.Data.SqlClient.SqlException (0x80131904): Cannot find the object "dbo.Journal" because it does not exist or you do not have permissions.
   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.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:6ee462e7-dfca-48c5-b56d-30fed98be3cf

IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.Columns WHERE TABLE_NAME='Journal' AND COLUMN_NAME='CommentsHidden')
BEGIN
ALTER TABLE dbo.Journal
ADD CommentsHidden bit NOT NULL CONSTRAINT DF_Journal_CommentsHidden DEFAULT 0
END

--------------------------------------------------------------------------------------------------------------------------------------------


The site is running on SQL 2008 R2. I checked the database and it does not have that table. Should it be in there? I tried to create the Journal table by code but ran into the next error that says something like "invalid field IsDeleted" so I reverted back.

The upgrade went through to the end and the site seems to be fully functional so I am wondering why that error came up.


Any help is appreciated.


Cheers

Nils

 
New Post
10/20/2013 10:21 PM
 

Restore the database and files from backup you done before run the upgrade.  Check if the table still not exist.  Joornal table should be exist since DNN 6 time and the social Integration.  If the table still missing your database is corrupted. 

If the table exist, check permission on your physical Folders, be sure you run on .NET 4.x and be sure you rin the SQL compatibility Level on the highest in your database!  Delete all zip files on the install  subfolders before extract upgade packages.

Then check the upgrade zip file if there is a unblock button on the footer of the advanded Setting, if yes uncheck the file before you extract it.

Then retry to upgrade.

 
New Post
10/20/2013 10:34 PM
 

Hi Matthias,

Thanks for your prompt answer. I checked the backup and the table is missing in there. Furthermore while comparing to another of my sites I recognized that there are even more tables missing on this site. The tables are:

  • Journal
  • Journal_Access
  • Journal_Comments
  • Journal_Data
  • Journal_Security
  • Journal_TypeFilters

The only "Journal"-related table that is not missing is the "Journal_Types" table. What would you suggest to do to solve this?

Is there a (save) way to "reinstall" just the journal related tables? I mean in theory they have to exist in the DataProviders somewhere right?


Cheers

Nils

 
New Post
10/21/2013 12:18 AM
 

Try to uninstall the Jonal from the extensions, not sure if this is possible yet.  Then Try to install the Jornal module you can get from an install package of DNN 7.0.3 using the install wizard.  If you cant uninstall the Jonal before I would try tu run an repair install.  Please be sure that the database is consistent, and included all database artifacts of tables, views, procedures and functions.  A consistent database is a prerequest to upgrade to newer version.

Please be Aware, that DNN 7.1 Need SQL Server 2008 or higher and the SQL Support Level must be on the highest value. 

 
New Post
10/21/2013 3:55 AM
 
I am not sure, whether journal can be uninstalled and re-installed, tables might be parts of DNN core now.
Please check log.resources files inside /providers/dataproviders/sqldataprovider for issues being logged.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...SQL Exception on upgrade from 7.0.3 to 7.1.2SQL Exception on upgrade from 7.0.3 to 7.1.2


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