DNN 5.6.1 Critical ERR on Dynamic View Update
Last Post 02-03-2011 09:27 AM by Ryan Bakerink. 2 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
AdamUser is Offline
river guide
river guide
Posts:116
Avatar

--
02-02-2011 04:30 AM
    Build 2.0.1.20807 / 5.6.1

    Just updated to the latest dynamic view version and when ever I try to press the update button on the template tab I get the following error;

    Can't makes changes or save... Help!

    UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3) DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider ExceptionGUID: ac752a82-1019-431b-8b7a-b68247fdc4d3 InnerException: String or binary data would be truncated. The statement has been terminated. FileName: FileLineNumber: 0 FileColumnNumber: 0 Method: System.Data.SqlClient.SqlConnection.OnError StackTrace: Message: DotNetNuke.Services.Exceptions.ModuleLoadException: String or binary data would be truncated. The statement has been terminated. ---> System.Data.SqlClient.SqlException: String or binary data would be truncated. The statement has been terminated. 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.SqlDataReader.ConsumeMetaData() 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) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteScalar() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues) at DataSprings.DNN.Modules.DynamicViews.Data.SqlDataProvider.Add(DynamicViewsInfo objDynamicViews) at DataSprings.DNN.Modules.DynamicViews.Business.DynamicViewsController.Add(DynamicViewsInfo objDynamicViews) at DataSprings.DNN.Modules.DynamicViews.DynamicViewsEdit.cmdUpdate_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---
    AdamUser is Offline
    river guide
    river guide
    Posts:116
    Avatar

    --
    02-02-2011 05:12 AM
    I have narrowed the problem down, it seems to be something to do with the header template HTML. I rebuilt the HTML from scratch and it saved fine.

    Can't be sure if it is lenght of html text or a problem character, but I have noticed that the View Header Template field is a nvarchar(2000) but the update procedure is nvarchar(max).

    This could be a possible cause for the error.

    Thanks
    Adam
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    02-03-2011 09:27 AM
    Hello Adam,

    Yes that would be the root issue of the "truncation error". If you had more characters than the field allowed then an error would be thrown and the field would truncate.

    I hope everything is working for you now.

    If you have any questions please let me know.

    -Ryan


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi