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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsError updating moduleError updating module
New Post
5/31/2013 7:50 AM


I have a site runningDNN 7.05 and I tried to upgrade the documents module to version 6 and received the following error.

StartJob Starting Installation
Info Starting Installation - DNN_Documents
Info Starting Installation - Script
Info Begin Sql execution
Info Created - Providers\DataProviders\SQLDataProvider\06.00.00.SqlDataProvider
Info Executing 06.00.00.SqlDataProvider
Info Start Sql execution: 06.00.00.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException (0x80131904): The identifier that starts with ', Files.Size, Files.ContentType, UrlTracking.TrackClicks, UrlTracking.Clicks, Url' is too long. Maximum length is 128. Unclosed quotation mark after the character string ', Files.Size, Files.ContentType, UrlTracking.TrackClicks, UrlTracking.Clicks, UrlT'. 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:58a2e467-8d0e-480b-ac43-1b3caf520602 CREATE PROCEDURE dbo.GetDocument @ItemId INT, @ModuleId INT AS SELECT Documents.Itemid, Documents.Moduleid, Documents.Title, Documents.Url, Documents.Category, CreatedByUser.FirstName + ' ' + CreatedByUser.LastName AS "CreatedByUser", OwnedByUser.FirstName + ' ' + OwnedByUser.LastName AS "OwnedByUser", ModifiedByUser.FirstName + ' ' + ModifiedByUser.LastName AS ModifiedByUser", Files.Size, Files.ContentType, UrlTracking.TrackClicks, UrlTracking.Clicks, UrlTracking.NewWindow, Documents.OwnedByUserID, Documents.ModifiedByUserID, Documents.ModifiedDate, Documents.CreatedByUserID, Documents.CreatedDate, Documents.SortOrderIndex, Documents.Description, Documents.ForceDownload FROM dbo.Documents LEFT OUTER JOIN dbo.Users AS CreatedByUser on Documents.CreatedByUserID = CreatedByUser.UserId LEFT OUTER JOIN dbo.Users AS OwnedByUser on Documents.OwnedByUserID = OwnedByUser.UserId LEFT OUTER JOIN dbo.Users AS ModifiedByUser on Documents.ModifiedByUserID = ModifiedByUser.UserId LEFT OUTER JOIN dbo.UrlTracking on Documents.URL = UrlTracking.Url and UrlTracking.ModuleId = @ModuleID LEFT OUTER JOIN dbo.Files on Documents.URL = 'fileid=' + convert(varchar,dbo.Files.FileID) WHERE dbo.Documents.ItemId = @ItemId and dbo.Documents.ModuleId = @ModuleId
Info End Sql execution: 06.00.00.SqlDataProvider file
Info Finished Sql execution
Failure Installation Failed - Script
Info Installation Failed - DNN_Documents
Info Deleted temporary install folder
EndJob Installation Failed

Is there any help on this?

Now when I try edit a link I get the error below. Its the same error I get now that i have tried a repair to version 5.

Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: The stored procedure 'dbo.GetDocument' doesn't exist. ---> System.InvalidOperationException: The stored procedure 'dbo.GetDocument' doesn't exist. at System.Data.SqlClient.SqlCommand.DeriveParameters() at System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Documents.SqlDataProvider.GetDocument(Int32 ItemId, Int32 ModuleId) at DotNetNuke.Modules.Documents.DocumentController.GetDocument(Int32 ItemId, Int32 ModuleId) at DotNetNuke.Modules.Documents.EditDocs.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---



New Post
5/31/2013 8:14 AM
That should read DNN 7.06 not (7.05)
New Post
6/6/2013 12:07 PM
I'm having the same dbo.GetDocument error when trying to add new files; however the module installed without error, the dbo.GetDocument procedure seems to have not been installed correctly?
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsError updating moduleError updating module

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