Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tizer 170 posts 201 karma points
    Sep 29, 2010 @ 10:32
    Tizer
    0

    Strange Content Node sort problem

    I have this content node which just isn't working like the rest :(

    On the first page, I show the latest article, sorted by date, from each category using this code:

    <xsl:for-each select="current()/descendant::node[@nodeTypeAlias = 'Article']">
        <xsl:sort select="umbraco.library:FormatDateTime(data[@alias = 'date'], 'yyyymmdd')" order="descending"/>    
                <xsl:if test="position() &lt; 2">

    All works well except for this one article, it will not register at all on the first page, yet displays at the top (as it is supposed to by date) on the mulitply article page.

    I'm not sure if this is related, but when you look at the sort order (even though I know it has no effect) this article has the value '0'. If it is moved a value is given, but it reverts to '0' on save?

    Any ideas whats going on?

     

  • Tizer 170 posts 201 karma points
    Sep 29, 2010 @ 11:25
    Tizer
    0

    Even stranger - I delted and recreated this node, it acts the same... would reloading the content nodes help?

  • Tizer 170 posts 201 karma points
    Sep 30, 2010 @ 01:19
    Tizer
    0

    Reloading the Nodes didn't work...

    I'm stuck on this one... I'm not really sure where to look to fix this.

  • Tizer 170 posts 201 karma points
    Sep 30, 2010 @ 04:01
    Tizer
    0

    OK - I have remembered to check the log (sorry - I forgot) and it is showing this error - which is linked to the datepicker, but there doesn't seem to be any answers:

    Error updating item: umbraco.DataLayer.SqlHelperException: Umbraco Exception (DataLayer): SQL helper exception in ExecuteNonQuery ---> System.Data.SqlClient.SqlException: Arithmetic overflow error converting expression to data type datetime.  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.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.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)     at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()     at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)     at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)     at umbraco.DataLayer.SqlHelpers.SqlServer.SqlServerHelper.ExecuteNonQuery(String commandText, SqlParameter[] parameters) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelpers\SqlServer\SqlServerHelper.cs:line 64     at umbraco.DataLayer.SqlHelper`1.ExecuteNonQuery(String commandText, IParameter[] parameters) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelper.cs:line 217     --- End of inner exception stack trace ---     at umbraco.DataLayer.SqlHelper`1.ExecuteNonQuery(String commandText, IParameter[] parameters) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\datalayer\SqlHelper.cs:line 221     at umbraco.cms.businesslogic.datatype.DefaultData.set_Value(Object value)

    Not sure if this is at all related, but this is appearing after I upgraded the ASP.NET Security Vulnerability

Please Sign in or register to post replies

Write your reply to:

Draft