Open Closed

There is no entity IdentityUser with id even though user exist in ABPUsers entity #9940


User avatar
0
manas-patnaik_HON created

There is no entity IdentityUser with id even though user exist in ABPUsers entity


3 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    If you are encountering an error stating "There is no entity IdentityUser with id" even though the user exists in the AbpUsers table, this typically indicates a mismatch or inconsistency between your application's user management logic and the actual data in the database.

    Here are the steps to resolve this issue:

    1. Verify User Existence:

      • Check the AbpUsers table in your database to ensure the user record with the specified ID actually exists.
      • If you are using multi-tenancy, make sure you are checking the correct tenant's database.
    2. Check for Data Consistency:

      • Ensure that the user ID you are querying or referencing in your code matches exactly (including casing and format) with the ID in the AbpUsers table.
    3. Seeding and Migration:

      • If you have recently performed migrations or seeded data, ensure that the seeding process completed successfully and the user data is present.
      • If the user is missing or the password is incorrect, you can delete the user record and re-seed the initial data using the DbMigrator application.
    4. Passwords:

      • Passwords in AbpUsers are stored in a hashed format. If you need to reset a password, do so through the application logic or re-seed the data.
    5. Troubleshooting:

      • If you still encounter issues, try deleting the problematic user and re-creating it through your application or seeding logic.

    For more details, refer to the official documentation:

    Sources


    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    manas-patnaik_HON created

    we are using identityUserRepository.GetAsync(guid) and it is throwing above error

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you check the TenantId and IsDeleted values for your user table?

    Perhaps the current tenant differs from your user.

    You can also enable EF Core debug logging to view the User query SQL statement.

    https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems

    Thanks.

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.0.0-preview. Updated on September 23, 2025, 10:47