bexis / Module_ResourceManagement

Resource booking management module: This is a calendar based tool to manage any kind of resource. It is highly configurable to cover multiple scenarios. It helps to communicate the bookings and activities to all users (or colleagues and other stakeholders). Module for Core @BEXIS2.
2 stars 1 forks source link

Delete booking sometimes not working #36

Closed geofranzi closed 4 years ago

geofranzi commented 4 years ago

public bool DeletePerson(Person person) -> Personmanager.cs

23503: Aktualisieren oder Löschen in Tabelle »person« verletzt Fremdschlüssel-Constraint »fk240860b1ae56feb4« von Tabelle »rbm_schedules«

geofranzi commented 4 years ago

the problem did not appear again.

geofranzi commented 4 years ago

DETAIL: Auf Schlüssel (id)=(45) wird noch aus Tabelle »rbm_schedules« verwiesen. 2020-02-05 16:18:05.007 CET [9164] ANWEISUNG: DELETE FROM Person WHERE Id = $1 AND VersionNo = $2

Immer, wenn zwei oder mehr schedules drin waren

geofranzi commented 4 years ago

Initializing[BExIS.Rbm.Entities.BookingManagementTime.TimeDuration#88]-Could not initialize proxy - no Session.

[LazyInitializationException: Initializing[BExIS.Rbm.Entities.BookingManagementTime.TimeDuration#88]-Could not initialize proxy - no Session.] NHibernate.Proxy.AbstractLazyInitializer.Initialize() +165 NHibernate.Proxy.DefaultLazyInitializer.Intercept(InvocationInfo info) +85 TimeDurationProxy.get_Value() +258 BExIS.Web.Shell.Areas.RBM.Models.Booking.ScheduleEventModel..ctor(Schedule schedule) in C:\Daten\Documents\BEXIS_Project\Core_bexis\Console\BExIS.Web.Shell\Areas\RBM\Models\Booking\ScheduleModel.cs:404 BExIS.Web.Shell.Areas.RBM.Models.Booking.BookingEventModel..ctor(BookingEvent e) in C:\Daten\Documents\BEXIS_Project\Core_bexis\Console\BExIS.Web.Shell\Areas\RBM\Models\Booking\BookingEventModel.cs:116 BExIS.Modules.RBM.UI.Controllers.ScheduleController.Delete(Int64 id) in C:\Daten\Documents\BEXIS_Project\Core_bexis\Console\BExIS.Web.Shell\Areas\RBM\Controllers\ScheduleController.cs:2079 lambda_method(Closure , ControllerBase , Object[] ) +100