Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Kieran Harvey 22 posts 55 karma points
    Sep 11, 2012 @ 01:46
    Kieran Harvey
    0

    nHybernate Error on making new campaign

    First off great product.

    I am getting an error (YSOD) when trying to make a new Campaign and Campaign Item in the uCommerce back office. 

    Error Message:

    deleted object would be re-saved by cascade (remove deleted object from associations)[UCommerce.EntitiesV2.PriceGroupRole#13]

    Exception Details

    NHibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations)[UCommerce.EntitiesV2.PriceGroupRole#13]

     

    Stack trace: 

    [ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations)[UCommerce.EntitiesV2.PriceGroupRole#13]]
       NHibernate.Impl.SessionImpl.ForceFlush(EntityEntry entityEntry) +435
       NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.EntityIsTransient(SaveOrUpdateEvent event) +66
       NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.PerformSaveOrUpdate(SaveOrUpdateEvent event) +89
       NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.OnSaveOrUpdate(SaveOrUpdateEvent event) +203
       NHibernate.Impl.SessionImpl.FireSaveOrUpdate(SaveOrUpdateEvent event) +315
       NHibernate.Impl.SessionImpl.SaveOrUpdate(String entityName, Object obj) +309
       NHibernate.Engine.SaveUpdateCascadingAction.Cascade(IEventSource session, Object child, String entityName, Object anything, Boolean isCascadeDeleteEnabled) +66
       NHibernate.Engine.Cascade.CascadeToOne(Object parent, Object child, IType type, CascadeStyle style, Object anything, Boolean isCascadeDeleteEnabled) +148
       NHibernate.Engine.Cascade.CascadeAssociation(Object parent, Object child, IType type, CascadeStyle style, Object anything, Boolean isCascadeDeleteEnabled) +61
       NHibernate.Engine.Cascade.CascadeProperty(Object parent, Object child, IType type, CascadeStyle style, Object anything, Boolean isCascadeDeleteEnabled) +81
       NHibernate.Engine.Cascade.CascadeCollectionElements(Object parent, Object child, CollectionType collectionType, CascadeStyle style, IType elemType, Object anything, Boolean isCascadeDeleteEnabled) +379
       NHibernate.Engine.Cascade.CascadeCollection(Object parent, Object child, CascadeStyle style, Object anything, CollectionType type) +143
       NHibernate.Engine.Cascade.CascadeAssociation(Object parent, Object child, IType type, CascadeStyle style, Object anything, Boolean isCascadeDeleteEnabled) +124
       NHibernate.Engine.Cascade.CascadeProperty(Object parent, Object child, IType type, CascadeStyle style, Object anything, Boolean isCascadeDeleteEnabled) +81
       NHibernate.Engine.Cascade.CascadeOn(IEntityPersister persister, Object parent, Object anything) +369
       NHibernate.Event.Default.AbstractFlushingEventListener.CascadeOnFlush(IEventSource session, IEntityPersister persister, Object key, Object anything) +107
       NHibernate.Event.Default.AbstractFlushingEventListener.PrepareEntityFlushes(IEventSource session) +238
       NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event) +141
       NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event) +80
       NHibernate.Impl.SessionImpl.Flush() +345
       UCommerce.EntitiesV2.Repository`1.Delete(T entity) +23
       UCommerce.EntitiesV2.Role.Delete() +20
       UCommerce.Security.RoleService.EnsurePriceGroupRoles(ProductCatalogGroupRole productCatalogGroupRole, IList`1 existingRoles) +341
       UCommerce.Security.RoleService.EnsureRolesAreUpToDate() +405
       UCommerce.Security.RoleService.GetAllRoles() +10
       UCommerce.Security.Default.SecurityExtensions.AssignPermissionFor(ISecurityService securityService, TEntity entity) +101
       UCommerce.Web.UI.Umbraco.UCommerce.Marketing.Dialogs.CreateCampaign.CreateButton_Clicked(Object sender, EventArgs e) +300
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9553594
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

     

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    Sep 17, 2012 @ 11:51
    Søren Spelling Lund
    0

    Hi Kieran,

    Which version of uCommerce are you using?

    You're welcome to escalate this to [email protected] so we can resolve it quickly.

  • Kieran Harvey 22 posts 55 karma points
    Sep 18, 2012 @ 01:07
    Kieran Harvey
    0

    Hey Soren. 

    It ended up being an issue that occured after upgrading parts of my solution. There were broken referances to dlls in my project. 

    regards KJ

  • Søren Spelling Lund 1797 posts 2786 karma points
    Sep 24, 2012 @ 09:29
    Søren Spelling Lund
    0

    Thanks for following up here. Could you mark the topic resolved please? Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft