U4-9703 - Error Deleting content type

Created by Shannon Deminick 30 Mar 2017, 03:37:08 Updated by Shannon Deminick 04 Apr 2017, 01:26:14

Subtask of: UAASSCRUM-810

YSOD:

An error occured

Value cannot be null. Parameter name: key

Exception Details

System.ArgumentNullException: Value cannot be null. Parameter name: key Stacktrace

at System.Collections.Generic.Dictionary2.FindEntry(TKey key) at System.Collections.Generic.Dictionary2.ContainsKey(TKey key) at Umbraco.Deploy.GridCellValueConnectors.DefaultGridCellValueConnectorFactory.GetGridCellConnector(String alias) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\GridCellValueConnectors\DefaultGridCellValueConnectorFactory.cs:line 42 at Umbraco.Deploy.ValueConnectors.GridValueConnector.GetValue(Property property, ICollection1 dependencies) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\ValueConnectors\GridValueConnector.cs:line 72 at Umbraco.Deploy.ServiceConnectors.ContentConnectorBase2.<>c__DisplayClass7_0.b__1(Property x) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\ServiceConnectors\ContentConnectorBase.cs:line 105 at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector) at Umbraco.Deploy.ServiceConnectors.ContentConnectorBase2.MapProperties(PropertyCollection properties, ICollection1 dependencies) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\ServiceConnectors\ContentConnectorBase.cs:line 91 at Umbraco.Deploy.ServiceConnectors.DocumentConnector.MapVersion(IContent content, ICollection1 dependencies) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\ServiceConnectors\DocumentConnector.cs:line 113 at Umbraco.Deploy.ServiceConnectors.DocumentConnector.GetArtifact(GuidUdi udi, IContent content) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\ServiceConnectors\DocumentConnector.cs:line 83 at Umbraco.Deploy.ServiceConnectors.DocumentConnector.GetArtifact(Object o) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\ServiceConnectors\DocumentConnector.cs:line 54 at Umbraco.Deploy.ServiceConnectors.ServiceConnectorBase3.Umbraco.Core.Deploy.IServiceConnector.GetArtifact(Object o) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\ServiceConnectors\ServiceConnectorBaseOfTArtifact.cs:line 37 at Umbraco.Deploy.Environments.LocalUmbracoEnvironment.CreateArtifact(IEntity entity) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\Environments\LocalUmbracoEnvironment.cs:line 267 at Umbraco.Deploy.Environments.LocalUmbracoEnvironment.CreateArtifactSignature(IEntity entity) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\Environments\LocalUmbracoEnvironment.cs:line 260 at Umbraco.Deploy.SignatureRefresher.<SetSignatures>b__9_0(IEntity x) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\SignatureRefresher.cs:line 210 at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Umbraco.Deploy.SignatureRefresher.SetSignatures(IEnumerable1 entities) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\SignatureRefresher.cs:line 210 at Umbraco.Deploy.SignatureRefresher.b__3_7(IPublishingStrategy sender, PublishEventArgs1 args) in X:\Projects\Umbraco\Deploy_1_Retry\Umbraco.Deploy\SignatureRefresher.cs:line 60 at Umbraco.Core.Events.TypedEventHandler2.Invoke(TSender sender, TEventArgs e) at Umbraco.Core.Events.EventDefinition2.RaiseEvent() at Umbraco.Core.Events.ScopeEventDispatcher.ScopeExitCompleted() at Umbraco.Core.Events.ScopeEventDispatcherBase.ScopeExit(Boolean completed) at Umbraco.Core.Scoping.Scope.<>c__DisplayClass6.<RobustExit>b__3() at Umbraco.Core.Scoping.Scope.TryFinally(Int32 index, Action[] actions) at Umbraco.Core.Scoping.Scope.TryFinally(Int32 index, Action[] actions) at Umbraco.Core.Scoping.Scope.RobustExit(Boolean completed, Boolean onException) at Umbraco.Core.Scoping.Scope.Dispose() at Umbraco.Core.Persistence.UnitOfWork.ScopeUnitOfWork.DisposeResources() at Umbraco.Core.DisposableObject.Dispose(Boolean disposing) at Umbraco.Core.DisposableObject.Dispose() at Umbraco.Core.Services.ContentTypeService.Delete(IContentType contentType, Int32 userId) at Umbraco.Web.Editors.ContentTypeController.DeleteById(Int32 id) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()

Comments

Stephan 30 Mar 2017, 08:58:19

Deploy PR https://github.com/umbraco/Umbraco-Deploy/pull/103

will report a more meaninful exception when that situation arises.

however, could not repro and not sure why it happened - can you repro? could be that your grid.config.js file was not in sync in both sites? - and if you can repro, can you report the new exception?


Shannon Deminick 04 Apr 2017, 01:26:05

Hrm, can't seem to replicate now will close for the time being


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint: Sprint 56

Story Points: 1

Cycle: