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.
"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?
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
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.
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
is working on a reply...