Copied to clipboard

Flag this post as spam?

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

  • Naveed Ali 161 posts 426 karma points
    Sep 27, 2019 @ 20:41
    Naveed Ali

    Error retrieving new property

    I have added a new property on my document type. But when I go to retrieve it I get an error that the model does not contain a definition for this new property.

    My View page is using:

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<FtCatalog>

    and the error I get is:

     CS1061: 'FtCatalog' does not contain a definition for 'CategoriesBadges' and no accessible extension method 'CategoriesBadges' accepting a first argument of type 'FtCatalog' could be found (are you missing a using directive or an assembly reference?)

    No idea why this has not updated or cannot be retrieved I renames some other properties on this document type and they are rendering fine. But I cannot retrieve a newly added property

    Any ideas as this is very baffling to me.

    Maybe I have to get the current page and retrieve the property that way, but that would be just hacky??

  • Shaishav Karnani from 353 posts 1637 karma points
    Sep 28, 2019 @ 05:06
    Shaishav Karnani from

    Hi Naveed,

    Few ooptions:- 1. Check if property exists in FtCatalog.generated.cs model 2. if exists, rebuilt the solution 3. Still if property does not exist then close and reopen the solution.

    I think combined all these options property should start appearing again.



Please Sign in or register to post replies

Write your reply to: