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.
The query and data at this point is very simple:
SELECT [LocationName]
,[InstalledServices]
FROM [Bldr].[dbo].[BFS-Locations]
And we’ve made the import script as simple as possible. The docType is down to a textstring and the MNTP picker.
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.
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.
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).
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?
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.
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.
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]
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.
The query and data at this point is very simple:
SELECT [LocationName]
,[InstalledServices]
FROM [Bldr].[dbo].[BFS-Locations]
And we’ve made the import script as simple as possible. The docType is down to a textstring and the MNTP picker.
Hi Chuck,
Weird haven't seen that error. What hapens if yyou import withou mapping the MNTP?
Best,
Richard
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.
I assume it is configured for content and does the items you are mapping exists in the configured item?
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.
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
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
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
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
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.
As you can see on the previous images, the file does exist on both sites (different paths)
I also tried adding the image without the Media folders on the new site to see if it would work, but it didn't.
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.
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
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.
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.
Here is the error at the end of the import
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
is working on a reply...