Open Closed

GetEntityChangesWithUsernameAsync returns no results #2747


User avatar
0
dannyb created
  • ABP Framework version: v5.1.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): **yes **/ no
  • Exception message and stack trace:
  • Steps to reproduce the issue:" GetEntityChangesWithUsernameAsync -> return no results. Whereas GetEntityChangesAsync has results.

Using the inbuilt IAuditLogsAppService service method I am not getting any results, whereas the GetEntityChangesAsync returns results. See the attached image showing the problem.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

10 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    I will check it out

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Entity change logging is not supported by the MongoDB provider. Other features work as expected.

    See https://docs.abp.io/en/abp/latest/Audit-Logging#database-provider-support.

    For reason: https://github.com/abpframework/abp/issues/5031#issuecomment-672629291

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    dannyb created

    Hi,

    Entity change logging is not supported by the MongoDB provider. Other features work as expected.

    See https://docs.abp.io/en/abp/latest/Audit-Logging#database-provider-support.

    For reason: https://github.com/abpframework/abp/issues/5031#issuecomment-672629291

    Hi there, thanks for the reply. We are not using Mongo, we are on EF Core / MS SQL.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Can you re-provide the information?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    dannyb created

    Can you re-provide the information?

    The strike through indicates the system/selected item. Else that would mean we're using Angular and MVC.

    Regardless, I have edited to make it clearer.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Ok, I will check it again, thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    dannyb created

    Ok, I will check it again, thanks.

    Thank you, looking forward to your response.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    The EntityTypeFullName is required.

    For example:

    var result = await _auditLogsAppService.GetEntityChangesWithUsernameAsync(new EntityChangeFilter(){EntityId = log, EntityTypeFullName = typeof(IdentityRole).FullName});
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    dannyb created

    Hi,

    The EntityTypeFullName is required.

    For example:

    var result = await _auditLogsAppService.GetEntityChangesWithUsernameAsync(new EntityChangeFilter(){EntityId = log, EntityTypeFullName = typeof(IdentityRole).FullName}); 
    

    Thanks for the reply. What exactly am I to pass as the EntityTypeFullName. I've tried variations from the full entity name, with/without namespace etc.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    dannyb created

    Nevermind, typo on my part! Resolved. Thanks for your help.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.