Copied to clipboard

Flag this post as spam?

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


  • Ulf Möllerström 15 posts 96 karma points
    Oct 04, 2017 @ 09:00
    Ulf Möllerström
    0

    Failing import: Multinode Treepicker (MNTP2)

    Hi,

    Trying to import "brands" on products, but that doesn't work...

    I've tested two different setups of the datatype/MNTP: both xPath and just selecting the start node.

    I've also tested changing to node name, instead of id.

    Brands can be selected manually on a single product.

    Versions: CmsImport 3.7.2 Umbraco version 7.6.5

  • Richard Soeteman 3312 posts 9502 karma points
    Oct 04, 2017 @ 13:13
    Richard Soeteman
    0

    Hi,

    It should work with NodeName(not Id) when the document with the same name exists it should create a reference on the PRO version. I assume you have documents on Brands with the same name?

    Best,

    Richard

  • Ulf Möllerström 15 posts 96 karma points
    Oct 04, 2017 @ 13:58
    Ulf Möllerström
    0

    Dear Richard,

    Yes, the brands have the same node names as in the import file.

    Re-running the import with brand mapped to the name instead of node-id, generates the following error when viewing a product/node in back office:

    Server error: Contact administrator, see log for full details. Failed to retrieve entity data for ids Fa**e

    Regards /Ulf

  • Richard Soeteman 3312 posts 9502 karma points
    Oct 05, 2017 @ 05:38
    Richard Soeteman
    0

    Hmm seem like mapping didn't happen if it shows you the normal names. Sure names are exactly the same?

  • Ulf Möllerström 15 posts 96 karma points
    Oct 05, 2017 @ 07:50
    Ulf Möllerström
    0

    Richard,

    Yes, the names are copy-pasted from back office into the import file (had also a second pair of eyes on that).

    In umbraco.config the imported values show up like

    <brand><![CDATA[Fa**e ]]></brand>
    

    and a manually added brand on a product

    <brand><![CDATA[umb://document/*GUID-ID*]]></brand>
    

    (If it is of any importance?)

    /Ulf

  • Richard Soeteman 3312 posts 9502 karma points
    Oct 10, 2017 @ 10:41
    Richard Soeteman
    0

    Hi,

    There was an issue with the picker indeed. Can you check with this version?

    Best,

    Richard

  • Robert 11 posts 90 karma points
    1 week ago
    Robert
    0

    I am using the latest version of CMS Import pro but I have the same error as above. I have a collection of document types in the root called "Services" and these have a name and id. I have another document type at the same level in the root called "Packages" and one of the fields on the Package type is a Multinode Treepicker2 which points to the Services node as Package can have multiple child services. When running a CMSImport for Packages I pass across a Service name which exists but it does not map and I get the error: Failed to retrieve entity data for ids "blah blah blah". Any ideas how to fix?

  • Richard Soeteman 3312 posts 9502 karma points
    1 week ago
    Richard Soeteman
    0

    Hi Robert Have you tried withy the hotfix release as well?

  • Robert 11 posts 90 karma points
    1 week ago
    Robert
    0

    No, I tried the link to the dropbox above but it returns a 404. Where can I get the hotfix release?

  • Richard Soeteman 3312 posts 9502 karma points
    1 week ago
    Richard Soeteman
    0

    This one should be ok for now https://www.dropbox.com/s/kg4pglvlkk7n11d/cmsimport37_4.zip?dl=0

  • Robert 11 posts 90 karma points
    1 week ago
    Robert
    0

    Hi Richard I installed the hotfix and it works if I pass a csv list of names. However when I pass a csv list of ID's it does not map. How can we get the ID csv list to map?

  • Richard Soeteman 3312 posts 9502 karma points
    1 week ago
    Richard Soeteman
    0

    Hi Robert,

    That is a bit strange since selection is

    var nodeIds = (from v in csv select childnodes.FirstOrDefault(n => n.NodeId == v.ToInt() || n.NodeName.Equals(v.Trim(), StringComparison.CurrentCultureIgnoreCase)) into node where node != null select node.UID).ToList();
    

    So should except node id as well.

  • Robert 11 posts 90 karma points
    1 week ago
    Robert
    0

    Sorry I meant to clarify that it's an ID property not the real nodeid. So we have a document type called Service and it has two propeties defined, ServiceId and ServiceName. We import these values from our own central database via csmimport to a document type called Package which has a MNTP of Services. When I do the package import and pass across a csv list of ServiceName then they map correctly but we want to pass across the csv list of ServiceId how could we get that to work?

  • Robert 11 posts 90 karma points
    1 week ago
    Robert
    0

    Well we could just change our node names to use the serviceid instead so we will do this.

  • Richard Soeteman 3312 posts 9502 karma points
    1 week ago
    Richard Soeteman
    0

    That will work out of the box indeed so might be the best option thye other opion requires a bit of coding

Please Sign in or register to post replies

Write your reply to:

Draft