U4-7612 - Properties Pane is empty when trying to add a new Property to a new or existing Document Type

Created by Adrian Ursu 26 Dec 2015, 23:51:23 Updated by Shannon Deminick 12 Jan 2016, 12:52:12

Is duplicated by: U4-7650

I have upgraded from 7.2.8 to 7.4.0 beta

Property Editors should have worked normally

The Document types that were already defined, are still intact. But I cannot add new properties to either new or existing Document Types.

/umbraco/backoffice/UmbracoApi/DataType/GetGroupedDataTypes returns a server error and the Properties Pane is empty. The interface shows a red error message about contacting admin.

Here is the call stack I get when I look into the Console of the browser:

)]}', {"Message":"An error has occurred.","ExceptionMessage":"Sequence contains no matching element","ExceptionType":"System.InvalidOperationException","StackTrace":" at System.Linq.Enumerable.Single[TSource](IEnumerable1 source, Func2 predicate)\r\n at Umbraco.Web.Editors.DataTypeController.GetGroupedDataTypes()\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()"}

And here is what I've got from the Log file: 2015-12-27 01:14:05,504 [P10388/D2/T12] INFO Umbraco.Core.PluginManager - Starting resolution types of umbraco.interfaces.ITree 2015-12-27 01:14:05,505 [P10388/D2/T12] INFO Umbraco.Core.PluginManager - Completed resolution of types of umbraco.interfaces.ITree, found 0 (took 0ms) 2015-12-27 01:14:05,512 [P10388/D2/T12] INFO Umbraco.Core.PluginManager - Starting resolution types of umbraco.interfaces.IApplication 2015-12-27 01:14:05,513 [P10388/D2/T12] INFO Umbraco.Core.PluginManager - Completed resolution of types of umbraco.interfaces.IApplication, found 0 (took 0ms) 2015-12-27 01:14:38,649 [P10388/D2/T7] WARN Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field editor 2015-12-27 01:14:38,649 [P10388/D2/T7] WARN Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field hideLabel 2015-12-27 01:14:38,649 [P10388/D2/T20] WARN Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field startNodeId 2015-12-27 01:14:41,918 [P10388/D2/T15] INFO umbraco.BusinessLogic.Log - Log scrubbed. Removed all items older than 2015-12-26 01:14:41 2015-12-27 01:19:34,106 [P10388/D2/T35] WARN Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field editor 2015-12-27 01:19:34,106 [P10388/D2/T35] WARN Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field hideLabel 2015-12-27 01:19:39,939 [P10388/D2/T8] WARN Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field editor 2015-12-27 01:19:39,939 [P10388/D2/T8] WARN Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field hideLabel 2015-12-27 01:19:45,673 [P10388/D2/T10] INFO Umbraco.Core.PluginManager - Starting resolution types of umbraco.interfaces.ICacheRefresher 2015-12-27 01:19:45,674 [P10388/D2/T10] INFO Umbraco.Core.PluginManager - Completed resolution of types of umbraco.interfaces.ICacheRefresher, found 0 (took 1ms) 2015-12-27 01:20:13,707 [P10388/D2/T31] WARN Umbraco.Web.Models.Mapping.PreValueDisplayResolver - Could not find persisted pre-value for field startNodeId

1 Attachments

Comments

Sebastiaan Janssen 04 Jan 2016, 16:19:26

@adrian@dotfusion.ro Any chance you can send me a link (Dropbox, WeTransfer, etc). to a zip file containing your sites + database backup so we can have a look please? We can't reproduce this on a clean install of Umbraco so I'm assuming something went wrong when upgrading. To get to the bottom of this we need more than this error message though.

You can comment here and set "Visible to" to "HQ" which will guarantee that only Umbraco employees see the link.


Sebastiaan Janssen 06 Jan 2016, 13:31:23

Thanks @adrian@dotfusion.ro that helped a lot! Fixed it in this PR which should make it in soon. https://github.com/umbraco/Umbraco-CMS/pull/994

@rasmuseeg Have a look at the GitHub comment, this is undoubtedly the same issue you're having. In the datatypes tree, click on each custom datatype that you have, if that click results in an error then delete that datatype. Once all datatypes are working then your document type editor should be working as well.


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category: Editor

Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.4.0

Due in version: 7.4.0

Sprint: Sprint 6

Story Points:

Cycle: