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?
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
Hi Adam,
Check this article about converters: http://usitebuilder.vegaitsourcing.rs/tutorials?id=22644
Regards,
Sasa
is working on a reply...