Copied to clipboard

Flag this post as spam?

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


  • Anders Brohäll 295 posts 561 karma points c-trib
    Sep 17, 2010 @ 13:17
    Anders Brohäll
    0

    "An item with the same key has already been added."

    I get a asp.net-error when trying to export a specific node.

    Scenario:
    I export x folders with contents. Works like a charm.
    But when i try to export a folder named "Images" i get a error:

     

    An item with the same key has already been added.



    Any ideas of whats causing this?

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Sep 17, 2010 @ 13:22
    Matt Brailsford
    0

    Hey Anders,

    This tends to happen if you have 2 files with the same name. Umbraco allows you to do this, but obviously your filesystem won't, so it throws this error.

    I guess I could add some renaming functionality for if a file with the same name has been added?

    In the mean time though, I'd suggest downloading any duplicate named files manually first, and then delete them from your media section. Then you should be ok to export the rest as normal.

    Many thanks

    Matt

  • Anders Brohäll 295 posts 561 karma points c-trib
    Sep 17, 2010 @ 18:19
    Anders Brohäll
    0

    Ok, fair enough.

    Maybe it would be nice to handle that exception, renaming the file. 

     

    Anyway, thank you, i got everything i needed from the old site.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Sep 17, 2010 @ 20:41
    Matt Brailsford
    0

    Hey Anders,

    I've updated this now, so you shouldn't have the issue again. If the file exists, it adds a number on the end.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft