Mostly this is related to a certain datatype you are using. The real exception is logged in the UmbracoLog table. Please let me know if the error was related to something I must fix.
CMSImport: A record failed to import error:System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at CMSImportLibrary.Import.ContentImporter.(ImportState , User , ImportStatistics , String , Int32 )
&
CMSImport: Could not delete the failed document :System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at CMSImportLibrary.Import.ContentImporter.(ImportState , User , ImportStatistics , String , Int32 )
Ah John I think I know what happened check your recycle bin I think you find a lot of documents over there, otherwise what did you do with the document type between the first import and now?
Hmm that could be an issue however it still worked on my machine. Maybe you use a property that needs to know the document type you are on. I assume you saved the options? If so, open it and you get an a warning that the document type is changed and you need to specify it again. Do that, save again and start the import. If not please let me know the property types you are using.
The given key was not present in the dictionary
On an import which is updating 64 records which already exist, from a CSV file I get the output
Import Finished
Import is finished
The given key was not present in the dictionary.
this error is then repeated 64 times.
Any idea what would cause this?
Hi John,
Mostly this is related to a certain datatype you are using. The real exception is logged in the UmbracoLog table. Please let me know if the error was related to something I must fix.
Thanks,
Richard
the umbracoLog is not too helpful
all it says is
CMSImport: A record failed to import error:System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at CMSImportLibrary.Import.ContentImporter.(ImportState , User , ImportStatistics , String , Int32 )
&
CMSImport: Could not delete the failed document :System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at
System.Collections.Generic.Dictionary`2.get_Item(TKey key) at CMSImportLibrary.Import.ContentImporter.(ImportState , User , ImportStatistics , String , Int32 )
for each record that failed (ie 2 x 64 rows)
Ah John I think I know what happened check your recycle bin I think you find a lot of documents over there, otherwise what did you do with the document type between the first import and now?
Cheers,
Richard
I must admit I don't realy understand the way relations work in Umbraco. Is this using that?
Could it be that I renamed the document type in between the imports?
sorry I mean could it be *because* I renamed the document type in between the imports?
ie this *is* what I did not what I might have done :)
Hmm that could be an issue however it still worked on my machine. Maybe you use a property that needs to know the document type you are on. I assume you saved the options? If so, open it and you get an a warning that the document type is changed and you need to specify it again. Do that, save again and start the import. If not please let me know the property types you are using.
Cheers,
Richard
is working on a reply...