Copied to clipboard

Flag this post as spam?

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


  • Scott Gulliver 2 posts 93 karma points
    Jul 05, 2018 @ 15:50
    Scott Gulliver
    0

    AutoMapperMappingException after upgrade from 7.7.4 to 7.11.1

    Hi,

    We've upgraded our Umbraco site from version 7.7.4 to 7.11.1. All works locally, but when deploying to any other environment, we get the error message below when trying to edit/specify the property type of any doc type property. Wondering if anyone else has seen this issue, or might have a suggestion as to what the problem / fix is?

    Thanks.

    Logger: Umbraco.Web.Editors.DataTypeController

    Unhandled controller exception occurred AutoMapper.AutoMapperMappingException:

    Mapping types: IDataTypeDefinition -> DataTypeBasic Umbraco.Core.Models.IDataTypeDefinition -> Umbraco.Web.Models.ContentEditing.DataTypeBasic

    Destination path: DataTypeBasic

    Source value: Umbraco.Core.Models.DataTypeDefinition ---> System.InvalidOperationException: Sequence contains more than one matching element at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func2 predicate) at Umbraco.Core.PropertyEditors.PropertyEditorResolver.GetByAlias(String alias) at Umbraco.Web.Models.Mapping.DataTypeModelMapper.<>c.

  • Scott Gulliver 2 posts 93 karma points
    Jul 06, 2018 @ 11:30
    Scott Gulliver
    101

    We managed to fix this in the end. It was down to the way we were deploying to the environment - the target folder wasn't properly being cleared down before deployment, which looks like what caused the type to be registered twice.

Please Sign in or register to post replies

Write your reply to:

Draft