Copied to clipboard

Flag this post as spam?

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


  • Martin Lingstuyl 202 posts 379 karma points
    Sep 26, 2014 @ 08:46
    Martin Lingstuyl
    0

    Member not updated but duplicated

    Hi Richard,

     

    It appears my member import is duplicating Members on the second import if I change the loginname after the first import.

    how are the relations mapped? My CMSImportRelation Table (and all the orther relation tables) appears to be entirely empty.

     

    Martin

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 26, 2014 @ 08:57
    Richard Soeteman
    0

    Hi Martin,

    Members are mapped based on the loginname since that should be unique anyway, therefore you don't need to enter key information since login is always the key. V3 comes with an option to delete records that no longer exists so you can delete the old ones but not finished yet.

    Best,

    Richard

  • Martin Lingstuyl 202 posts 379 karma points
    Sep 26, 2014 @ 09:01
    Martin Lingstuyl
    0

    Hmmm, thats a problem, because in my Website members are imported, but can login afterwards and choose to change their loginname.

    I'm running an update routine every night, from an external Membership source. Thats why it is a problem.

    Do you think its possible to work around this in an Event, I would have to switch the importing member object and discard the newly made one. Something like that..

     

     

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 26, 2014 @ 10:38
    Richard Soeteman
    0

    Hi Martin,

    No real event you can use the RecordImporting event to cancel the new imported record but the member is already created at that time.

    What you could try, not sure if it works is to swap the member to the old member when it already exists and delete the newly created member. I think when you assign a new member object in the event the rest of the code will use that value as well. But that is something I have never tried before.

    Hope that could help you.

    Best,

    Richard

  • Martin Lingstuyl 202 posts 379 karma points
    Sep 26, 2014 @ 10:56
    Martin Lingstuyl
    0

    Thanks for your quick answers.

    I'll try adapting the Xml after its requested from the external Source and before its fed to cmsimport.

    Thats a little easier I think.

     

    Martin

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 26, 2014 @ 11:00
    Richard Soeteman
    1

    Yup and less hacky... ;-)

Please Sign in or register to post replies

Write your reply to:

Draft