Copied to clipboard

Flag this post as spam?

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


  • Max Mumford 266 posts 293 karma points
    Jul 07, 2011 @ 17:13
    Max Mumford
    0

    String was not recognized as a valid DateTime.

    Getting the below error when creating a blog post under the ublogsy root blog node

    DateFolders 
    SortChildrenByDateProperty exception
    String was not recognized as a valid DateTime.

  • Max Mumford 266 posts 293 karma points
    Jul 07, 2011 @ 17:15
    Max Mumford
    0

    Note: Date folders do get created, but when I try and do it again the date folders get DUPLICATED, i.e. root/2011/07/node, then root/2010 (1)/07 (1)/node

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 08, 2011 @ 09:56
    Stefan Kip
    0

    So what's the CurrentCulture, the alias of the dateProperty and the value of the date property?

  • Max Mumford 266 posts 293 karma points
    Jul 08, 2011 @ 10:47
    Max Mumford
    0

    These are my datefolder configuration keys I added to the web.config:

    <add key="itemDocType" value="uBlogsyPost" />

    <add key="itemDateProperty" value="@createDate" />

    <add key="dateFolderDocType" value="uBlogsyFolderMonth" />

    What do you mean by CurrentCulture? The site's only language is English.

    Thanks

    Max.

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 08, 2011 @ 10:50
    Stefan Kip
    0

    From the documentation:

    - Key: "itemDateProperty" - the property of the itemDocType to read the date from (e.g. "startDate") (don't add this key if you just want to use the document's create date)

    So this should be the property alias. A property alias never starts with an '@' sign. Also it states that if you'd like to use the document's create date, don't add this key. So try to remove that key...

  • Max Mumford 266 posts 293 karma points
    Jul 08, 2011 @ 14:58
    Max Mumford
    0

    Hi,

    I removed the key, restarted the web server and tried again and am still getting the same error and symptoms. 

    Any other ideas? Do you have another version or a beta I could try?

    thanks,

    Max.

  • Max Mumford 266 posts 293 karma points
    Jul 08, 2011 @ 14:59
    Max Mumford
    0

    Also can you confirm this package officially supports Umbraco 4.7?

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 08, 2011 @ 15:07
    Stefan Kip
    0

    Yes, I use it all the time with 4.7 and have no problems at all... There's no other version, because this one is stable.
    Sounds to me like a misconfiguration. 

  • Max Mumford 266 posts 293 karma points
    Jul 08, 2011 @ 15:09
    Max Mumford
    0

    Ok I tested versions 1.3, 1.2 and 1.1 and am getting the same error with each of them. 

    Ironically, trying the depreciated package for the old xslt schema pre 4.5 works:

    http://our.umbraco.org/projects/developer-tools/datefolder

    I really don't know why...

    I'd prefer to use yours as it is more recent and for the correct schema etc so if possible I'd like to get to the root of the issue :)

  • Max Mumford 266 posts 293 karma points
    Jul 08, 2011 @ 15:18
    Max Mumford
    0

    this is really very strange. See the image below for web.config configuration information, a double check that the doctypes exist, the error msg and the subsequently created nodes and their doctypes. Perhaps it will give some clues :)

     

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft