Copied to clipboard

Flag this post as spam?

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


  • AB 29 posts 80 karma points
    Jun 04, 2014 @ 10:39
    AB
    0

    Cannot set the value of a document type property error

    Hi,

    I have uSitebuilder 2 running with Umbraco 7 MVC.

    Everything has been going well.  I have run into one problem when trying to use the Multi Node Tree picker data type.

    So I have Document type with one property which is of type List<Node> and the data type is MulitNodeTree Picker.

    When I save and publish the property in the CMS, I recieve no errors.

    However, when I try to access the page I recieve the following error:

    Cannot set the value of a document type property Page.PagePicker (document type: System.Collections.Generic.List`1[[umbraco.NodeFactory.Node, umbraco, Version=1.0.5261.28133, Culture=neutral, PublicKeyToken=null]]) to value: '' (value type: ). Error: Invalid cast from 'System.String' to 'System.Collections.Generic.List`1[[umbraco.NodeFactory.Node, umbraco, Version=1.0.5261.28133, Culture=neutral, PublicKeyToken=null]]'.

    Is there a conversion that I need to carry out before returning CurrentContent in the controller?

    Thanks in advance!

    Adam

     

  • Sasa Popovic 77 posts 367 karma points
    Jun 04, 2014 @ 11:28
    Sasa Popovic
    0

    Hi Adam,

    Check this article about converters: http://usitebuilder.vegaitsourcing.rs/tutorials?id=22644

    Regards,
    Sasa 

Please Sign in or register to post replies

Write your reply to:

Draft