Copied to clipboard

Flag this post as spam?

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


  • BenH 59 posts 199 karma points
    Oct 11, 2016 @ 19:27
    BenH
    0

    Cannot add document types or templates into 7.5.3 UaaS

    I get the following error when attempting to save a doc type or template

    An error occured

    Error retrieving item [2b4314c2-36f8-4c82-b442-09e5c80281ba] from provider [e0472592-e73b-11df-9492-0800200c9a66].

    EXCEPTION DETAILS

    Umbraco.Courier.Core.Exceptions.RetrieveException: Error retrieving item [2b4314c2-36f8-4c82-b442-09e5c80281ba] from provider [e0472592-e73b-11df-9492-0800200c9a66].

    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId) at Umbraco.Courier.ItemProviders.DataTypeProvider.HandlePack(ItemIdentifier id) at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id) at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier itemId) at Concorde.CacheHandler.Managers.BaseEventManager.SendToCache(Type type, IEnumerable1 ids, String name) at Concorde.CacheHandler.Managers.UmbracoEventManager.SavedEntitiesWithKey(Object sender, EventArgs args) at Umbraco.Core.Events.TypedEventHandler2.Invoke(TSender sender, TEventArgs e) at Umbraco.Core.Events.EventExtensions.RaiseEvent[TSender,TArgs](TypedEventHandler2 eventHandler, TArgs args, TSender sender) at Umbraco.Core.Services.DataTypeService.SaveDataTypeAndPreValues(IDataTypeDefinition dataTypeDefinition, IDictionary2 values, Int32 userId) at Umbraco.Web.Editors.DataTypeController.PostSave(DataTypeSave dataType) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass10.9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.

    NHibernate.Exceptions.GenericADOException: could not execute query [ SELECT this.pk as pk80, this.propertyEditorAlias as property280, this.dbType as dbType80, this.nodeId as nodeId80_ FROM cmsDataType this_ WHERE this.nodeId = ? ] Positional parameters: #0>7483 [SQL: SELECT this.pk as pk80, this.propertyEditorAlias as property280, this.dbType as dbType80, this.nodeId as nodeId80 FROM cmsDataType this_ WHERE this_.nodeId = ?] at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet1 querySpaces, IType[] resultTypes) at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results) at NHibernate.Impl.CriteriaImpl.List(IList results) at NHibernate.Impl.CriteriaImpl.List[T]() at Umbraco.Courier.Persistence.V6.NHibernate.Helpers.DataTypeHelper.Get(Int32 id, ISession session) at Umbraco.Courier.Persistence.V6.NHibernate.Helpers.DataTypeHelper.Get(Guid guid, ISession session) at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.DataTypeItem.RetrieveItem(ItemIdentifier itemId) at Umbraco.Courier.Core.ItemCrud1.RetrieveItem[T1](ItemIdentifier itemId) at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId) INNER EXCEPTION

    System.IO.FileLoadException: Could not load file or assembly 'Castle.Core, Version=2.5.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at NHibernate.ByteCode.Castle.ProxyFactory.GetProxy(Object id, ISessionImplementor session) at NHibernate.Tuple.Entity.AbstractEntityTuplizer.CreateProxy(Object id, ISessionImplementor session) at NHibernate.Persister.Entity.AbstractEntityPersister.CreateProxy(Object id, ISessionImplementor session) at NHibernate.Event.Default.DefaultLoadEventListener.CreateProxyIfNecessary(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options, IPersistenceContext persistenceContext) at NHibernate.Event.Default.DefaultLoadEventListener.ProxyOrLoad(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options) at NHibernate.Event.Default.DefaultLoadEventListener.OnLoad(LoadEvent event, LoadType loadType) at NHibernate.Impl.SessionImpl.FireLoad(LoadEvent event, LoadType loadType) at NHibernate.Impl.SessionImpl.InternalLoad(String entityName, Object id, Boolean eager, Boolean isNullable) at NHibernate.Type.EntityType.ResolveIdentifier(Object id, ISessionImplementor session) at NHibernate.Type.EntityType.ResolveIdentifier(Object value, ISessionImplementor session, Object owner) at NHibernate.Engine.TwoPhaseLoad.InitializeEntity(Object entity, Boolean readOnly, ISessionImplementor session, PreLoadEvent preLoadEvent, PostLoadEvent postLoadEvent) at NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hydratedObjects, Object resultSetId, ISessionImplementor session, Boolean readOnly) at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters)

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Oct 12, 2016 @ 13:39
    Alex Skrypnyk
    0

    Hi BenH,

    Do you have this exception locally?

    How did you setup your project?

    Do you have this problem from the begining?

    I hope we will find solution after getting some more info.

    Thanks,

    Alex

  • BenH 59 posts 199 karma points
    Oct 12, 2016 @ 13:42
    BenH
    100

    Do you have this exception locally? - No, we have never been able to get a local version running correctly, and that is probably due to the way we set it up. We had upgraded from a webforms 6.1.6 site and its been tough going!

    The issue is a recent one, what kind of information can I provide to better communicate the setup?

    Thanks for responding!

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Oct 12, 2016 @ 13:44
    Alex Skrypnyk
    0

    How did you perform upgrading to latest version?

  • BenH 59 posts 199 karma points
    Oct 12, 2016 @ 13:53
    BenH
    0

    We manually updated locally via Visual Studio/Nuget to get the site updated to 7.4.3, then pushed it to the uaas site. Perhaps some conflicts are popping up from that process.

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Oct 12, 2016 @ 14:05
    Alex Skrypnyk
    0

    We performed migrating to UAAS with this steps - https://github.com/umbraco/.comDocumentation/blob/master/Deployment/existingsite.md

    This is official doc how to do it.

    Check please what steps you need to fix.

    I hope it will help you.

    Thanks,

    Alex

  • BenH 59 posts 199 karma points
    Oct 12, 2016 @ 14:14
    BenH
    0

    Yes, those were the exact steps we used to do it too. I'm working with the Uaas team and will post any resolution we can figure out.

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Oct 13, 2016 @ 17:06
    Alex Skrypnyk
    0

    Hi Ben,

    Did you solve the issue?

    Do you have some news?

    Thanks,

    Alex

  • BenH 59 posts 199 karma points
    Oct 13, 2016 @ 17:15
    BenH
    0

    Hi, thanks Alex, I do! There were some custom data types that were from V6 that were still in the system and needed to be re-saved. Somehow, they caused a sync issue with Courier and thus the save difficulties. By getting those saved in V7 it corrected the problem. So, it was an upgrade step that we should have done but missed!

Please Sign in or register to post replies

Write your reply to:

Draft