Copied to clipboard

Flag this post as spam?

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


  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 23, 2014 @ 09:14
    Simon Dingley
    0

    Error during load, check the logfile for details The given key was not present in the dictionary

    Hi Richard,

    I recently completed an upgrade on a site from v4.11.10 to v6.2.1. after that I upgraded to the latest CMS Import however when trying to view the saved import definitions most (not all) nodes are saying "Error during load, check the logfile for details The given key was not present in the dictionary".

    I've checked the logs and there is nothing in there relating to this - any ideas?

    Thanks, Simon

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 23, 2014 @ 09:17
    Richard Soeteman
    1

    Hi Simon,

    Another customer had this as well. It turned out that it was related to the document types. When he opened them he got the same error. I think not all data types exists in the new environment?

    Cheers,

    Richard

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 23, 2014 @ 09:33
    Simon Dingley
    0

    It's not a new environment as such it was an upgrade so all original doctypes/datatypes etc should still be there in their original places. Unfortunately with nothing written to the logs it's like looking for a needle in a haystack as this is a pretty big site. Any ideas how your other customer tracked down the offending document type? Also not sure how that would prevent this node from opening though?

    Thanks, Simon

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 23, 2014 @ 11:06
    Richard Soeteman
    0

    Hi Simon,

    I agree that this could be better. Strange that nothing is written to the logs but what you would get is a callstack then.. The other dev inspected all document types and there were 1 or 2 that gave issues. Don't know how he solved it since I think he needed to update the document types in the database or something. But when the document type is correct again the error is also gone in the saved definition.

    You only see a single line with the error or do you get a YSOD?

    Cheers,

    Richard

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 23, 2014 @ 11:23
    Simon Dingley
    0

    No YSOD just a single line with the message is written into the content pane. Will have to keep trawling through the site to see if I find anything amiss with the datatypes or document types.

    Simon

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 23, 2014 @ 11:44
    Simon Dingley
    0

    Update: I think the reason there is nothing in the logs is possibly a separate issue I've just identified. The site is load balanced across 2 servers and both logs are empty so investigating that now. Hopefully if we can resolve that issue we can see more detail on the error.

    Simon

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 23, 2014 @ 12:58
    Richard Soeteman
    0

    Hi Simon,

    Yeah think so since that message should write to the log..

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 23, 2014 @ 15:53
    Simon Dingley
    0

    Logging has been restored but the information wouldn't have been logged in the live environment as it is set to ERROR level only. I've replicated it on a staging server and now have the following log entry to go on:

    2014-09-23 14:57:14,020 [45] INFO  umbraco.BusinessLogic.Log - [Thread 47] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: Error during load System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.Collections.Generic.SortedDictionary`2.get_Item(TKey key)
       at CMSImportLibrary.DataAdapters.DataAdapterFactory.GetDataSource(String dataAdapterAlias)
       at CMSImport.Controls.ImportSteps.SelectDataSource.()
       at CMSImport.Controls.CMSImport.(Int32 )
       at CMSImport.Controls.CMSImport.OnPreRender(EventArgs e)
    

    Does that help shed any further light on the problem?

    Cheers, Simon

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 23, 2014 @ 15:56
    Richard Soeteman
    0

    Hi Simon,

    That was the same error. It's failing internal in an Umbraco API when getting the info from document types. Did you already try to open document types in the browser?

    Cheers,

    Richard

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 23, 2014 @ 15:57
    Simon Dingley
    100

    Thought about the stracktrace and on a hunch reinstalled the RSS DataAdapter and that looks to be it - it was missing since the upgrade I think! Well, at least this might help someone else :)

    Thanks Richard.

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Sep 23, 2014 @ 15:58
    Richard Soeteman
    1

    Oh same error for a different problem wel, I hope the same. Will add this one to the list I need to fix...

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 23, 2014 @ 16:02
    Simon Dingley
    0

    at CMSImportLibrary.DataAdapters.DataAdapterFactory.GetDataSource(String dataAdapterAlias)

    It was this line which led me to think that it couldn't find the adapter for some reason because it is followed by the missing key exception.

    Cheers for the help.

    Simon

Please Sign in or register to post replies

Write your reply to:

Draft