Copied to clipboard

Flag this post as spam?

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


  • Raoul 2 posts 72 karma points
    Mar 30, 2022 @ 13:20
    Raoul
    0

    Macro error: Value cannot be null. Parameter name: dictionary

    I've been getting the error below when trying to add/update macros, but I can't see what's causing it. The error does disappear if I make and save a change to the macro parameters, however it appears again at apparently random times. I first got the error when creating some property editors, but those all appear to be working fine now.

    An error occurred

    Value cannot be null. Parameter name: dictionary

    Exception Details System.ArgumentNullException: Value cannot be null. Parameter name: dictionary

    Stacktrace:

    at System.Collections.Generic.Dictionary2..ctor(IDictionary2 dictionary, IEqualityComparer`1 comparer) at Umbraco.Core.PropertyEditors.ConfigurationEditor.ToConfigurationEditor(Object configuration) in D:\a\1\s\src\Umbraco.Core\PropertyEditors\ConfigurationEditor.cs:line 114 at Umbraco.Core.PropertyEditors.ConfigurationEditor.ToValueEditor(Object configuration) in D:\a\1\s\src\Umbraco.Core\PropertyEditors\ConfigurationEditor.cs:line 122 at Umbraco.Web.Models.Mapping.MacroMapDefinition.Map(IMacroProperty source, MacroParameter target, MapperContext context) in D:\a\1\s\src\Umbraco.Web\Models\Mapping\MacroMapDefinition.cs:line 88

    at Umbraco.Core.Mapping.UmbracoMapper.<>cDisplayClass1002.<Define>b__1(Object source, Object target, MapperContext context) in D:\a\1\s\src\Umbraco.Core\Mapping\UmbracoMapper.cs:line 121 at Umbraco.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context) in D:\a\1\s\src\Umbraco.Core\Mapping\UmbracoMapper.cs:line 223 at Umbraco.Core.Mapping.UmbracoMapper.Map[TSource,TTarget](TSource source, MapperContext context) in D:\a\1\s\src\Umbraco.Core\Mapping\UmbracoMapper.cs:line 205 at Umbraco.Core.Mapping.MapperContext.Map[TSource,TTarget](TSource source) in D:\a\1\s\src\Umbraco.Core\Mapping\MapperContext.cs:line 68 at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Umbraco.Core.Mapping.MapperContext.MapEnumerable[TSourceElement,TTargetElement](IEnumerable1 source) in D:\a\1\s\src\Umbraco.Core\Mapping\MapperContext.cs:line 125 at Umbraco.Web.Models.Mapping.MacroMapDefinition.<>c.32(IMacro source, MapperContext context) in D:\a\1\s\src\Umbraco.Web\Models\Mapping\MacroMapDefinition.cs:line 28 at Umbraco.Core.Mapping.UmbracoMapper.<>c_DisplayClass1002.<Define>b__0(Object source, MapperContext context) in D:\a\1\s\src\Umbraco.Core\Mapping\UmbracoMapper.cs:line 118 at Umbraco.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context) in D:\a\1\s\src\Umbraco.Core\Mapping\UmbracoMapper.cs:line 220 at Umbraco.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, MapperContext context) in D:\a\1\s\src\Umbraco.Core\Mapping\UmbracoMapper.cs:line 169 at Umbraco.Web.Editors.MacroRenderingController.GetMacroParameters(Int32 macroId) in D:\a\1\s\src\Umbraco.Web\Editors\MacroRenderingController.cs:line 55 at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) 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.

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.

    Any ideas would be greatly appreciated!

Please Sign in or register to post replies

Write your reply to:

Draft