Copied to clipboard

Flag this post as spam?

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


  • Chuck Kirklen 36 posts 184 karma points
    Dec 07, 2017 @ 21:14
    Chuck Kirklen
    0

    CMSImport Multinode Tree Picker Error in 7.6.1

    We are getting an error when we try and map data into a Multinode Tree picker. Hopefully all of the supporting information is here.

    Umbraco 7.6.1 CMSImport 3.7.3

    An error occured Multiple actions were found that match the request: GetByIds on type Umbraco.Web.Editors.EntityController GetByIds on type Umbraco.Web.Editors.EntityController GetByIds on type Umbraco.Web.Editors.EntityController Exception Details System.InvalidOperationException: Multiple actions were found that match the request: GetByIds on type Umbraco.Web.Editors.EntityController GetByIds on type Umbraco.Web.Editors.EntityController GetByIds on type Umbraco.Web.Editors.EntityController

    at System.Web.Http.Controllers.ApiControllerActionSelector.ActionSelectorCacheItem.SelectAction(HttpControllerContext controllerContext) at System.Web.Http.Controllers.ApiControllerActionSelector.SelectAction(HttpControllerContext controllerContext) at Umbraco.Web.Editors.ParameterSwapControllerActionSelector.SelectAction(HttpControllerContext controllerContext) at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken) at System.Web.Http.Dispatcher.HttpControllerDispatcher.

    See also the screenshot of error that appears on the node.

    Error on imported node after updating MNTP

    The query and data at this point is very simple:

    SELECT [LocationName]
    ,[InstalledServices]
    FROM [Bldr].[dbo].[BFS-Locations]

    MNTP update for a location

    And we’ve made the import script as simple as possible. The docType is down to a textstring and the MNTP picker.

    import definition for MNTP update

    Locations doctype with MNTP for installed services

    MNTP datatype

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Dec 08, 2017 @ 07:19
    Richard Soeteman
    0

    Hi Chuck,

    Weird haven't seen that error. What hapens if yyou import withou mapping the MNTP?

    Best,

    Richard

  • Janet Kirklen 102 posts 212 karma points
    Dec 08, 2017 @ 17:35
    Janet Kirklen
    0

    The import without the MNTP works fine. It's only when we include the property that is a MNTP that the error happens. We are having the same results on Umbraco 7.6.1 and 7.7.2 with CMSImport 3.7.3

    We've simplifed this down to a docType that has only at textstring and a MNTP. So not much else is happening here.

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Dec 11, 2017 @ 07:58
    Richard Soeteman
    0

    I assume it is configured for content and does the items you are mapping exists in the configured item?

  • Janet Kirklen 102 posts 212 karma points
    Dec 11, 2017 @ 16:59
    Janet Kirklen
    0

    Yes, the items that the MNTP refer to are child items of another node in the content tree. That MNTP has a starting node other than the root node (Installed Services Import) defined on the property/datatype definition. And that node contains the child items that the import data is referring to (Doors, Drywall, etc). See the screen shots included in the original post.

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Dec 13, 2017 @ 10:17
    Richard Soeteman
    0

    Hi Janet,

    The reason it failed was that the MNTP fieldprovider was only configured for media, not content. I've just updated the provider and should be fine now (tested with 7.7).

    Below you find the link to the hotfix https://www.dropbox.com/s/kg4pglvlkk7n11d/cmsimport37_4.zip?dl=0

    Hope this helps,

    Richard

  • Adriana Cerqueiro 38 posts 177 karma points
    Jan 25, 2018 @ 18:15
    Adriana Cerqueiro
    0

    Hi Richard, I've been having problems importing images from the media section using a MNTP.

    Currently, I am working with v7.7.9 and cmsImport 3.7.4 (I already installed and tried the previously mentioned patch). On the Media Settings for cmsImport the "media import path" reads "/img/". I am using Umbraco Content as a Data Source.

    I have the complete old Media folder on the new root in Umbraco.Site -> img -> Media. I also tried with one image on the new "img" folder, but it doesn't work.

    The error I am getting is

    Error while importing data for property 'attachedImages', datasource record @nodeName = 'Codegarden 2014', Error :Could not find file 'D:_sites\ikels\rootumb_778\img\Codegarden2014'.

    Tha image is on the old website in Umbraco.Site -> Media -> 1088 -> codegarden2014.png, but for some reason, it seems cmsImport is looking for a folder with the name of the node for said image.

    Could I be missing some kind of configuration or package? Could it be something else?

    Thank you very much!!

    -- Adriana

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Jan 26, 2018 @ 06:58
    Richard Soeteman
    0

    Hi,

    CMSImport doesn't look at the node info but on files on disk. I think the file isn't there on disk?

    Best,

    Richard

  • Adriana Cerqueiro 38 posts 177 karma points
    Jan 26, 2018 @ 13:12
    Adriana Cerqueiro
    0

    Good morning Richard, thank you for the quick reply!

    I am attaching a few images with the configuration for cmsImport and the path on disk for the images.

    Settings for media under cmsImport

    Old site image path

    New site image path

    As you can see on the previous images, the file does exist on both sites (different paths)

    New site image path 2

    I also tried adding the image without the Media folders on the new site to see if it would work, but it didn't.

    Node for the image on the old Umbraco site

    Here is the node for the image on the Umbraco site I am trying to migrate from. Note that the nodeName is the one being used in the error.

    cmsImportError

    And this is the error I described before. It seems to be looking for a folder with the image name instead of the actual .jpeg file

    I hope this help.

    Thank you very much!

    -- Adriana

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Jan 26, 2018 @ 13:19
    Richard Soeteman
    0

    Have you tried /img/media/ in mediaimport settings? Since it's mentioning that it can't find anything in /img folder and you have a media subfolder I thing that should work.

    Hope this helps.

  • Adriana Cerqueiro 38 posts 177 karma points
    Jan 26, 2018 @ 13:36
    Adriana Cerqueiro
    0

    It still doesn't work.

    The first time I tried it it was with the old Media folder content directly into the new img folder. I just tried it with "/img/Media" and it failed again.

    Image field settigns

    enter image description here

    Here is the error at the end of the import

    cmsImport error report

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Jan 29, 2018 @ 06:21
    Richard Soeteman
    0

    That last error is a weird one. Would it be possible to share site and db with me so I can run in debug mode locally? If possible please let me know via [email protected]

    Thanks,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft