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

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

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.

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

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    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.