Base solution for your next web application
Open Closed

I get error when trying to use HardDelete() in boilerplate #6667


User avatar
0
digitalcontrol created

I have table Entity which is connected to many tables. I set up on every relationship cascade delete. I also use boilerplate soft delete on table Entity first. Then I try to use HardDelete() to delete entity permanently. Here is code:

    {
        CurrentUnitOfWork.DisableFilter(AbpDataFilters.SoftDelete);

        var entity = await _entityRepository.GetAsync(id);
        await _entityRepository.HardDeleteAsync(entity);

    }

This is error that I get:

SqlException: The Database ID 14, Page (1:2119), slot 0 for LOB data type node does not exist. This is usually caused by transactions that can read uncommitted data on a data page. Run DBCC CHECKTABLE.

I try also DBCC CHECKDB, and don't get any error.


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @digitalcontrol

    Sorry for my late reply. I couldn't find a solution for your case but this seems to be related to SQL Server rather than AspNet Zero.

    Did you find a solution ?

  • User Avatar
    0
    digitalcontrol created

    I am not 100%, but it seems it's a problem with database data.