Open Closed

Issues with CMSKit Implementation when trying to add a blog entry: "There is no entity CmsUser with id" #8130


User avatar
1
henrry.araujo created
  • ABP Framework version: v8.2.1
  • UI type: MVC
  • Project Type: Abp Microservice (Commercial License)
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
2024-10-17 22:41:34.482 +00:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "There is no entity CmsUser with id = 3a1532ee-ae7b-c16e-b50e-b2f6f5307663!",
  "details": null,
  "data": null,
  "validationErrors": null
}

2024-10-17 22:41:34.483 +00:00 [ERR] There is no such an entity. Entity type: Volo.CmsKit.Users.CmsUser, id: 3a1532ee-ae7b-c16e-b50e-b2f6f5307663
Volo.Abp.Domain.Entities.EntityNotFoundException: There is no such an entity. Entity type: Volo.CmsKit.Users.CmsUser, id: 3a1532ee-ae7b-c16e-b50e-b2f6f5307663
   at Volo.Abp.Users.UserLookupServiceExtensions.GetByIdAsync[TUser](IUserLookupService`1 userLookupService, Guid id, CancellationToken cancellationToken)
   at Volo.CmsKit.Admin.Blogs.BlogPostAdminAppService.CreateAsync(CreateBlogPostDto input)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)

Steps to reproduce the issue: Create a blogspot utilising the abp cmskit .

I have added the package in my microservice cms, The id is of CurrentUser. My current tenant has a few users in it, but no records in the CmsUser table. I have enabled all Globalfeature for cmskitPro in preconfigure service.

To create a blogpost, the AuthorId is required, but my CmsUser table is empty even though my Identity User table has data in it. The abp doc below says “When a new identity user is created, a new record will be added to this table.” but I am not seeing any data that is populated in the CmsUser table. What is the mechanism abp uses to populate the cmsUser table when identity user is created? Is there any configuration I have to add to enable data population into the CmsUser?

https://abp.io/docs/latest/modules/database-tables#cmsusers

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
    maliming created
    Support Team Fullstack Developer

    hi

    How can I reproduce your problem in a new microservice template?

    Can you share the steps?

    Thanks.

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

    As specified above:

    Steps to reproduce the issue:

    Create a blogspot utilising the abp cmskit .

    I have added the package in my microservice cms, The id is of CurrentUser. My current tenant has a few users in it, but no records in the CmsUser table. I have enabled all Globalfeature for cmskitPro in preconfigure service.

    To create a blogpost, the AuthorId is required, but my CmsUser table is empty even though my Identity User table has data in it. The abp doc below says “When a new identity user is created, a new record will be added to this table.” but I am not seeing any data that is populated in the CmsUser table. What is the mechanism abp uses to populate the cmsUser table when identity user is created? Is there any configuration I have to add to enable data population into the CmsUser?```

    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

    We may not follow the same steps to reproduce the problem Can you share this test project? So I can debug and reproduce the problem.

    Thanks You can share the project via https://wetransfer.com/ liming.ma@volosoft.com

    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.