Copied to clipboard

Flag this post as spam?

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


  • Saqib Razzaq 5 posts 27 karma points
    Oct 15, 2010 @ 03:01
    Saqib Razzaq
    1

    Umbraco content nodes not sorting

     

    Hi all,

    I have Umbraco 4.5.2 installed (upgraded from Umbraco 4.5.1) and I cannot sort nodes under certain folders.

    The steps to reproduce are

    1. Right click on node, goto sort.
    2. Sort the nodes
    3. Hit Save
    4. I have verified that the posted data is in the correct sort order: e.g. { "ParentId": 1063, "SortOrder": "1132,1131,1305,1311,1134,1135,1136,1137,1138,1140,1141,1142,1308,1309,1310,1317,1318,1319,1320,"}
    5. The response is {"d":null}

     

    When I check UmbracoLog in the database, I am getting the following exception:

    umbraco.DataLayer.SqlHelperException: Umbraco Exception (DataLayer): SQL helper exception in ExecuteXmlReader ---> System.ArgumentException: The query didn't return a value.
         at umbraco.DataLayer.SqlHelper`1.ExecuteXmlReader(String commandText, P[] parameters)
         at umbraco.DataLayer.SqlHelper`1.ExecuteXmlReader(String commandText, IParameter[] parameters)
         --- End of inner exception stack trace ---
         at umbraco.DataLayer.SqlHelper`1.ExecuteXmlReader(String commandText, IParameter[] parameters)
         at umbraco.cms.businesslogic.web.Document.importXml()
         at umbraco.cms.businesslogic.web.Document.refreshXmlSortOrder()
         at umbraco.presentation.webservices.nodeSorter.UpdateSortOrder(Int32 ParentId, String SortOrder)

    Any help will be greatly appreciated.

    Thank you

    -zak

  • Kim Løwert 130 posts 116 karma points
    Nov 23, 2010 @ 14:23
    Kim Løwert
    0

    Hi zak,

    Did you ever get around to get this error solved?

    I'm experiencing the same issue on v4.5.2 on .Net 4.0 on a site where I have to sort 100+ nodes - actually just sorting some of the last added nodes at the bottom of the list. I have reported the issue on CodePlex.

    Cheers

    Kim

  • Søren Linaa 255 posts 208 karma points
    Nov 23, 2010 @ 15:05
    Søren Linaa
    0

    I get the same errors - I voted for it on codeplex.

  • Kim Andersen 1447 posts 2196 karma points MVP
    Nov 23, 2010 @ 16:13
    Kim Andersen
    0

    I ran into this issue as well, some weeks ago, but actually never got it working and forgot all about it.

    Voted for the issue on Codeplex as well now.

    /Kim A

  • Saqib Razzaq 5 posts 27 karma points
    Nov 23, 2010 @ 18:37
    Saqib Razzaq
    2

    Hi all,

    Sorry for not updating this thread with my findings, but I was able to make a little more headway into my issue.

    The issue seems to be when a user needs to unpublish some content in the future and enters a "Remove at" date in the properties tab. After the date has passed, umbraco unpublishes the content, but in doing so, the data seems to get corrupted.

    I noticed that the corrupted nodes have a "#" symbol in "Link to document" under the properties tab. If any content node has this invalid link, sorting does not work.

    My fix for now is to clear the "Remove at date" save it and then hit the "Unpublish" button. This changes the "Link to document" to read "This item is not published". Once all the nodes have been cleaned, sorting starts working again.

    Luckily we only have to do this once a month and do not have a lot of need for sorting so we are able to get by.

    -zak

  • Kim Løwert 130 posts 116 karma points
    Nov 23, 2010 @ 18:48
    Kim Løwert
    0

    Hi Zak,

    Thanks for the feedback. That actually seems to be another issue then, because in my issue I haven't worked with the automatic un-publishing of content. However there are unpublished nodes in the list of nodes that are being sorted, so there may be an issue if the documents to be sorted contains published and unpublished nodes. I'll try to look into that as soon as possible.

    Any of you other guys having testet with an All Published list of documents?

    @zak - maybe you can append your comments to my CodePlex issue/report?

    @everybody else - if you are experiencing the same issue, please vote for it on Codeplex.

    Cheers

    Kim

  • Søren Linaa 255 posts 208 karma points
    Nov 23, 2010 @ 21:12
    Søren Linaa
    0

    This is spot on !

    My list contained a document that had been unpublished using the "remove at" method. Publishing the document made it possible to sort again.

    So a little bug in the umbraco core here I guess.

    Thanks for a quick feedback.

     

  • Kim Løwert 130 posts 116 karma points
    Nov 23, 2010 @ 21:16
    Kim Løwert
    0

    That is absolutely super. Will you guys add these comments to the CodePlex issue, so it can be sorted. I'll try publishing all documents in a test-solution tomorrow to verify if it solves my issue too :)

    Thanks a lot in advance :)

    Cheers

    Kim

  • Kim Løwert 130 posts 116 karma points
    Nov 23, 2010 @ 22:04
    Kim Løwert
    0

    Hi guys,

    After a test republishing all the content that I tried to sort, this actually also solved my issue. Thanks to zak for figuring out the problem.

    Cheers Kim

  • Kim Andersen 1447 posts 2196 karma points MVP
    Nov 23, 2010 @ 22:24
    Kim Andersen
    0

    Holy moly Zak! That actually works for me too.

    Nice detective work :)

    /Kim A

  • Connie DeCinko 931 posts 1160 karma points
    Jan 26, 2011 @ 19:11
    Connie DeCinko
    0

    Same here, removing the "Remove at" date allows sorting to work correctly.  I see the CodePlex issue is still open.  Does that mean it will not be fixed in version 4.6?

     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Feb 14, 2011 @ 17:06
    Tom Fulton
    0

    Hi,

    FYI - the issue with sorting on content that was removed using the "Remove At" feature appears to be fixed in 4.6.1. 

    In 4.5.2 the document was never fully unpublished, it was removed from the cache but its Published flag was still set to true, which caused an exception in the sorting functions.  I tested in 4.6.1 and it appears to unpublish properly now and sorting seems to be working.

    -Tom

  • John Hodgkinson 613 posts 355 karma points
    Feb 06, 2012 @ 16:53
    John Hodgkinson
    0

    I'm experiencing this same issue in umbraco 4.7.1 - we have over 25k content nodes... any idea how to determine which items may have a "remove at" date? many thanks in advance!

Please Sign in or register to post replies

Write your reply to:

Draft