Copied to clipboard

Flag this post as spam?

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


  • nickornotto 393 posts 895 karma points
    Jun 04, 2022 @ 10:13
    nickornotto
    0

    Macro with Property type picker throws error on opening

    ...and not showing properties in picker in macro

    I have a macro parameter of type Property type picker. It worked fine in Umbraco 7.

    However when trying to use the macro on a page and select the types - when opening the macro to select properties - I receive an error:

    enter image description here

    (Property is of type property type picker)

    An error occurred Don't know how to map Umbraco.Cms.Core.Models.IPropertyType to Umbraco.Cms.Core.Models.ContentEditing.EntityBasic.

    Exception Details System.InvalidOperationException, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e: Don't know how to map Umbraco.Cms.Core.Models.IPropertyType to Umbraco.Cms.Core.Models.ContentEditing.EntityBasic. Stacktrace at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TSource,TTarget](TSource source, MapperContext context) at System.Linq.Enumerable.SelectEnumerableIterator2.ToList() at Umbraco.Cms.Core.Mapping.UmbracoMapper.MapEnumerable[TSourceElement,TTargetElement](IEnumerable1 source) at Umbraco.Cms.Web.BackOffice.Controllers.EntityController.GetResultForAll(UmbracoEntityTypes entityType, String postFilter) at lambdamethod997(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Awaited|250(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

  • Nguyen Quang Dung 1 post 20 karma points
    1 week ago
    Nguyen Quang Dung
    0

    Hi nick, did you resolve the problem? I got the same here.

Please Sign in or register to post replies

Write your reply to:

Draft