Copied to clipboard

Flag this post as spam?

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


  • Gareth Wright 23 posts 91 karma points c-trib
    Jan 06, 2020 @ 16:24
    Gareth Wright
    0

    Importing Members & Content - Couple of Issues

    Hi all,

    I'm setting up a prototype that takes members & content from Umbraco 7.1.4 to Umbraco 7.13.2 using CMS Import PRO 3.7.8

    I have a couple of issues,

    1. Importing Members:

      • My member type has two properties. A media picker that allows multiple images and a media picker that only allows single images. The single image picker works, but the multi media picker doesn't.
      • After investigations, I can see that the multi-media picker, looks for the media item using the wrong ID. It uses the Media's ID, not the file path id.

      Error while importing data for property 'profileImages', datasource record @memberLogin = 'XXXXXX@gmail.com', Error :Could not find file 'C:\git\destination.web\media\1046'.

    2. Importing Content

      • My content has a property that uses Member Picker that references a member from above. This reference unfortunately isn't imported at all.
      • After investigations, the old site uses Umbraco.MemberPicker and the new site uses Umbraco.MemberPicker2. Is there a conversion available for this?

    I've read through the documentation, but I can't see why this would be the case, so any advice would be amazing!

  • Richard Soeteman 3722 posts 11521 karma points MVP
    Jan 07, 2020 @ 11:09
    Richard Soeteman
    1

    Hi Gareth,

    Boths issues are because of a missing converter. MemberPicker assumes it had the old GUID Id as property editor alias (Hope I can fix that soon, if you care to test?)

    The issue for media is because the Mulitple media picker doesn't have an export converter like Single Image picker does. Will see if that can be implemented easily as well.

    Best,

    Richard

  • Gareth Wright 23 posts 91 karma points c-trib
    Jan 07, 2020 @ 11:41
    Gareth Wright
    0

    Absolutely happy to test and if you need anything else from me, let me know!

    Thanks

  • Richard Soeteman 3722 posts 11521 karma points MVP
    Jan 07, 2020 @ 15:50
    Richard Soeteman
    1

    This dll should fix the memberpicker part. The multiple image part is a bit more difficult :-( Will come back to that later this week.

  • Gareth Wright 23 posts 91 karma points c-trib
    Jan 07, 2020 @ 16:49
    Gareth Wright
    0

    Hi Richard,

    Just tested the DLL, browsing the content item with the memberpicker:

    Server error: Contact administrator, see log for full details. Failed to retrieve entity data for ids XXXXXX@gmail.com.

    Does it need to pass the ID for that member? The member exists.

  • Gareth Wright 23 posts 91 karma points c-trib
    Jan 07, 2020 @ 16:41
    Gareth Wright
    0

    Thanks Richard, will try that DLL and get back to you.

  • Richard Soeteman 3722 posts 11521 karma points MVP
    Jan 08, 2020 @ 08:05
    Richard Soeteman
    0

    Weird,

    What does the log says? Maybe the raw value changed over the years :-(

    Best,

    Richard

  • Gareth Wright 23 posts 91 karma points c-trib
    Jan 08, 2020 @ 08:45
    Gareth Wright
    0

    I've just checked the logs and there isn't anything in there that specifically relates to the memberpicker unfortunately.

    Although looking at the console, it's doing a call to /umbraco/backoffice/UmbracoApi/Entity/GetByIds?type=Member

    )]}', {"Message":"An error has occurred.","ExceptionMessage":"Multiple actions were found that match the request: \r\nGetByIds on type Umbraco.Web.Editors.EntityController\r\nGetByIds on type Umbraco.Web.Editors.EntityController\r\nGetByIds on type Umbraco.Web.Editors.EntityController","ExceptionType":"System.InvalidOperationException","StackTrace":" at System.Web.Http.Controllers.ApiControllerActionSelector.ActionSelectorCacheItem.SelectAction(HttpControllerContext controllerContext)\r\n at Umbraco.Web.Editors.ParameterSwapControllerActionSelector.SelectAction(HttpControllerContext controllerContext)\r\n at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()"}

  • Richard Soeteman 3722 posts 11521 karma points MVP
    Jan 08, 2020 @ 09:00
    Richard Soeteman
    0

    When you open the document or in CMSImport itself?

  • Gareth Wright 23 posts 91 karma points c-trib
    Jan 08, 2020 @ 09:05
    Gareth Wright
    0

    It's when I open the document. I get an empty picker and get a red notification (with the original error XXXX@gmail.com). If I look at the console I get the above message.

  • Richard Soeteman 3722 posts 11521 karma points MVP
    Jan 08, 2020 @ 09:09
    Richard Soeteman
    0

    Ah ok thought that was the error ion the import. Looks like the FieldProvider for the memberpicker is missing

  • Gareth Wright 23 posts 91 karma points c-trib
    Jan 08, 2020 @ 09:09
    Gareth Wright
    0

    Member

    Content

  • Gareth Wright 23 posts 91 karma points c-trib
    Jan 13, 2020 @ 14:10
    Gareth Wright
    0

    Hi Richard, did you make any progress on this?

    Really appreciate your time helping me fix this.

  • Richard Soeteman 3722 posts 11521 karma points MVP
    Jan 13, 2020 @ 14:27
    Richard Soeteman
    0

    Hi Gareth,

    Sorry no not yet. Hopefully this week. In case you are in a Hurry you can always create a FieldProvider for these property editors. The manual explains how you can create a FieldProvider.

    Best,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft