Copied to clipboard

Flag this post as spam?

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


  • Michael 125 posts 409 karma points
    Aug 14, 2015 @ 09:07
    Michael
    0

    The given key was not present in the dictionary.

    Hi,

    Umbraco 7.1.4, usync 2.2.2, (write on save) Archetype 1.7.4

    Steps to reproduce:

    1. Developer->Data Types->edit datatype->Save;
    2. File System: go to Usync folder -> edit datatype which we edit in prev step, change for example

    Save file.

    1. Developer -> usync dashboard -> Click import in Usync.

    2. Clear cache.

    3. Receive error in umbraco admin when try to edit page and on the web site.

    This is real case of regular development. Local prevalue id's is different than staging/prod.

    Changing back and doing the same not update content.

    How I can fix this problem. Where I should look (tables)?

    Stack trace:

    [KeyNotFoundException: The given key was not present in the dictionary.] System.Collections.Generic.Dictionary2.get_Item(TKey key) +14332239 Archetype.Extensions.<>c__DisplayClass2.<GetArchetypePreValueFromDataTypeId>b__1() +384 Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func1 getCacheItem, Nullable1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, CacheDependency dependency) +266 Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func1 getCacheItem, Nullable1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, String[] dependentFiles) +200 Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func1 getCacheItem) +95 Archetype.Extensions.ArchetypeHelper.GetArchetypePreValueFromDataTypeId(Int32 dataTypeId) +377 Archetype.Extensions.ArchetypeHelper.IsPropertyValueConverterOverridden(Int32 dataTypeId) +68 Archetype.PropertyConverters.ArchetypeValueConverter.IsConverter(PublishedPropertyType propertyType) +264 System.Linq.WhereEnumerableIterator1.MoveNext() +156 System.Linq.Buffer1..ctor(IEnumerable1 source) +488 System.Linq.Enumerable.ToArray(IEnumerable1 source) +103 Umbraco.Core.Models.PublishedContent.PublishedPropertyType.InitializeConverters() +217 Umbraco.Core.Models.PublishedContent.PublishedContentType.<.ctor>b0(PropertyType x) +42 System.Linq.WhereSelectEnumerableIterator2.MoveNext() +270 System.Linq.Buffer1..ctor(IEnumerable1 source) +488 System.Linq.Enumerable.ToArray(IEnumerable1 source) +103 Umbraco.Core.Models.PublishedContent.PublishedContentType..ctor(IContentTypeComposition contentType) +188 Umbraco.Core.Models.PublishedContent.PublishedContentType.CreatePublishedContentType(PublishedItemType itemType, String alias) +307 Umbraco.Core.Cache.<>cDisplayClass91.<GetCacheItem>b__8() +15 Umbraco.Core.Cache.<>c__DisplayClass1a.<GetCacheItem>b__19(String key) +15 System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) +83 Umbraco.Core.Cache.StaticCacheProvider.GetCacheItem(String cacheKey, Func1 getCacheItem) +98 Umbraco.Core.Cache.CacheProviderExtensions.GetCacheItem(ICacheProvider provider, String cacheKey, Func1 getCacheItem) +180 Umbraco.Core.Models.PublishedContent.PublishedContentType.Get(PublishedItemType itemType, String alias) +230 Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedContent.Initialize() +2214 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.ConvertToDocument(XmlNode xmlNode, Boolean isPreviewing) +178 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.DetermineIdByRoute(UmbracoContext umbracoContext, Boolean preview, String route, Boolean hideTopLevelNode) +272 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetByRoute(UmbracoContext umbracoContext, Boolean preview, String route, Nullable1 hideTopLevelNode) +228 Umbraco.Web.Routing.ContentFinderByNiceUrl.FindContent(PublishedContentRequest docreq, String route) +247 Umbraco.Web.Routing.ContentFinderByNiceUrl.TryFindContent(PublishedContentRequest docRequest) +228 System.Linq.Enumerable.Any(IEnumerable1 source, Func2 predicate) +149 Umbraco.Web.Routing.PublishedContentRequestEngine.FindPublishedContent() +326 Umbraco.Web.Routing.PublishedContentRequestEngine.FindPublishedContentAndTemplate() +226 Umbraco.Web.Routing.PublishedContentRequestEngine.PrepareRequest() +106 Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) +503 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

    Thanks, M

  • Michael 125 posts 409 karma points
    Aug 14, 2015 @ 11:51
    Michael
    100

    Updating to latest archetype resolve this problem.

Please Sign in or register to post replies

Write your reply to:

Draft