U4-5524 - Copying a document type with a master to one without a master produces an invalid document type

Created by Dimitri Kourkoulis 22 Sep 2014, 00:28:25 Updated by Shannon Deminick 26 Jun 2017, 05:41:32

Relates to: U4-5487

In Umbraco v7.2.0-alpha, if a document type with a master is copied, and the master is set to "none..." in the copy, the new document type (the copy) becomes unusable. When trying to add a node of this new type to the Umbraco content tree, the system produces the error listed further below (visible only in debug mode in such detail).

This is not the case when a document type with a master is copied to a new document type with the same master, or when a document type without a master is copied to a new document type without a master.

The error ------------------------ Failed to retrieve data for empty content item type umbTextPageTranslation Sequence contains no matching element

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Sequence contains no matching element

Stack Trace:

at System.Linq.Enumerable.Single[TSource](IEnumerable1 source, Func2 predicate) at Umbraco.Web.Models.Mapping.TabsAndPropertiesResolver.ResolveCore(IContentBase content) at AutoMapper.ValueResolver2.Resolve(ResolutionResult source) at AutoMapper.DeferredInstantiatedResolver.Resolve(ResolutionResult source) at AutoMapper.PropertyMap.<ResolveValue>b__6(ResolutionResult current, IValueResolver resolver) at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable1 source, TAccumulate seed, Func`3 func) at AutoMapper.PropertyMap.ResolveValue(ResolutionContext context) at AutoMapper.Mappers.TypeMapObjectMapperRegistry.PropertyMapMappingStrategy.MapPropertyValue(ResolutionContext context, IMappingEngineRunner mapper, Object mappedObject, PropertyMap propertyMap)


Shannon Deminick 26 Jun 2017, 05:41:32

Closing issue due to inactivity - see blog post for details https://umbraco.com/blog/issue-tracker-cleanup/

Priority: Normal

Type: Bug

State: Closed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.2.0

Due in version:


Story Points: