Copied to clipboard

Flag this post as spam?

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


  • antao 81 posts 371 karma points
    Aug 05, 2015 @ 12:29
    antao
    0

    List View problems in migration 7.1.8 to 7.2.8

    Just made an upgrade from 7.1.8 to 7.2.8 everything went smoothly except that my list view enabled nodes do not work. I did not found the default list view data types, so created them. When trying to add a node in the tree with list view capabilities I get the following error:

    "NetworkError: 500 Internal Server Error - http://domain.local/umbraco/backoffice/UmbracoApi/Content/GetEmpty?contentTypeAlias=Listviewtest&parentId=-1"

    Answer of http status error:

    )]}',
    {"Message":"An error has occurred.","ExceptionMessage":"Object reference not set to an instance of an
     object.","ExceptionType":"System.NullReferenceException","StackTrace":"   at Umbraco.Web.Models.Mapping
    .TabsAndPropertiesResolver.AddListView[TPersisted](TabbedContentItem`2 display, String entityType, IDataTypeService
     dataTypeService)\r\n   at Umbraco.Web.Models.Mapping.ContentModelMapper.AfterMap(IContent content, ContentItemDisplay
     display, IDataTypeService dataTypeService)\r\n   at AutoMapper.TypeMap.<get_AfterMap>b__1(Object src
    , Object dest)\r\n   at AutoMapper.Mappers.TypeMapObjectMapperRegistry.PropertyMapMappingStrategy.Map
    (ResolutionContext context, IMappingEngineRunner mapper)\r\n   at AutoMapper.Mappers.TypeMapMapper.Map
    (ResolutionContext context, IMappingEngineRunner mapper)\r\n   at AutoMapper.MappingEngine.AutoMapper
    .IMappingEngineRunner.Map(ResolutionContext context)"}
    

    Stack trace information:

    at Umbraco.Web.Models.Mapping.TabsAndPropertiesResolver.AddListView[TPersisted](TabbedContentItem`2 display, String entityType, IDataTypeService dataTypeService)
    
       at Umbraco.Web.Models.Mapping.ContentModelMapper.AfterMap(IContent content, ContentItemDisplay display, IDataTypeService dataTypeService)
    
       at AutoMapper.TypeMap.<get_AfterMap>b__1(Object src, Object dest)
    
       at AutoMapper.Mappers.TypeMapObjectMapperRegistry.PropertyMapMappingStrategy.Map(ResolutionContext context, IMappingEngineRunner mapper)
    

    Did anyone faced this? Thanks in advance

  • Sebastiaan Janssen 5045 posts 15477 karma points MVP admin hq
    Aug 05, 2015 @ 13:30
    Sebastiaan Janssen
    101

    You can't just create the list view datatypes, they need to be inserted with their specific ids (a negative number).

    Could it be that on this database you did not run the upgrade installer? Maybe you deployed the new version after you upgraded it locally and didn't run the installer on the next environment?

    If so: go to web.config and set the version to 7.1.8, go to the site and run the upgrade installer. This will run the appropriate database migrations and insert the list view datatypes.

    (make sure to delete the listview types you already created)

  • antao 81 posts 371 karma points
    Aug 05, 2015 @ 14:50
    antao
    1

    Thanks Sebastiaan, the upgrade installer did not ran and the db changes where not made. The datatypes referred are here:

    https://github.com/umbraco/Umbraco- CMS/blob/7c4a189aa3cf583954defd9c43a3e55e325f2c3f/src/Umbraco.Web/Strategies/Migrations/EnsureListViewDataTypeIsCreated.cs#L94

    Ran the installer and everything is A ok.

Please Sign in or register to post replies

Write your reply to:

Draft