Not Able to delete Outstanding Object from AADUser because of O3EmailUser table object reference IM 8.0.2

I have created a Process which calls method 'DeleteOutstanding'   for some selected objects of AADuser table which are having Xmarkedfordeletion=2 (Outstanding).

These objects also have a reference in O3EmailUser table. Not sure why but system throws an error saying as below. I understand system should handle dependecies automatically as I am using OutOfBox methods to delete this outstanding object.

NOTE: Object which is there in O3EmailUser table s also outstanding.

NOTE: Method and process works frine for ADSAccount, ADSGroup etc tables.

ErrorMessages = (2019-11-09 19:45:41.777) Error saving BebopAlulaaaaaaa,ShesMyBabyyyyyyy,BARDON,ISIT: [810306] Error during execution of 'OnSaving' in logic module 'O3E.Customizer.AADUser'.
[2661005] It is not permitted to change Exchange Online objects.
at VI.DB.Implementation.HandleObjectKernel._OperationCallMethod(IUnitOfWork optionalUnitOfWork)
at VI.DB.Implementation.HandleObjectKernel._Save(IUnitOfWork unitOfWork, IEntity entity)
at VI.Base.SyncActions.Do(Func`1 action)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
---- Start of Inner Exception ----
at VI.DB.Entities.EventUnitOfWork.<PutAsync>d__2.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.PermissionsUnitOfWork.<PutAsync>d__11.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.EventUnitOfWork.<PutAsync>d__2.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.UnitOfWorkImpl.<PutAsync>d__37.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.DbEntitySink.<PutAsync>d__14.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.DelayedLogicSaveEntityStrategy.<OnSavingAsync>d__5.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at VI.DB.Entities.CombinedEntityLogic.<OnSavingWithHandlerAsync>d__13.MoveNext()
---- Start of Inner Exception ----
at VI.DB.Entities.CombinedEntityLogic.<OnSavingWithHandlerAsync>d__13.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
--- End of stack trace from previous location where exception was thrown ---
at O3E.Customizer.AADUser.<OnSavingAsync>d__1.MoveNext()
Method DeleteOutstanding was called for 1 object(s) of type AADUser.

 

Parents Reply Children
No Data