Have read a lot through forums with others getting similar error but those are with custom logic around product deletion. This error is being generated out of ucommerce code and UI, hence, would really appreciate any help or ideas.
I have 3 variants configured with a separate price
On decompiling uCommerce assemblies and trying to trace back the
error the last hint I got was the query in
ProductDeleteEventListener class that deletes from ProductRelation,
am pretty sure this error has nothing to do with it
Another hint is that this error happens after parent product and its
associations have been deleted and the first variant under that
product is in the process of getting deleted
I do not get this error if I do NOT put a transaction scope on the
nHibernate session object
ObjectDeletedException: deleted object would be re-saved by cascade
Using uCommerce EditProductBasicProperties screen I am unable to delete the product. On clicking the red cross get the below error:
Stack Trace: [ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations)[UCommerce.EntitiesV2.Product#105]] NHibernate.Impl.SessionImpl.ForceFlush(EntityEntry entityEntry) +653 NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.EntityIsTransient(SaveOrUpdateEvent event) +296 NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.PerformSaveOrUpdate(SaveOrUpdateEvent event) +413 NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.OnSaveOrUpdate(SaveOrUpdateEvent event) +845 NHibernate.Impl.SessionImpl.FireSaveOrUpdate(SaveOrUpdateEvent event) +327 NHibernate.Impl.SessionImpl.SaveOrUpdate(String entityName, Object obj) +223 NHibernate.Engine.SaveUpdateCascadingAction.Cascade(IEventSource session, Object child, String entityName, Object anything, Boolean isCascadeDeleteEnabled) +257
Have read a lot through forums with others getting similar error but those are with custom logic around product deletion. This error is being generated out of ucommerce code and UI, hence, would really appreciate any help or ideas.
I have 3 variants configured with a separate price
On decompiling uCommerce assemblies and trying to trace back the error the last hint I got was the query in ProductDeleteEventListener class that deletes from ProductRelation, am pretty sure this error has nothing to do with it
Another hint is that this error happens after parent product and its associations have been deleted and the first variant under that product is in the process of getting deleted
I do not get this error if I do NOT put a transaction scope on the nHibernate session object
is working on a reply...