- Template: app
- Created ABP Studio Version: 0.9.18
- Current ABP Studio Version: 0.9.23
- Tiered: Yes
- Multi-Tenancy: Yes
- UI Framework: blazor-server
- Theme: leptonx
- Theme Style: system
- Database Provider: ef
- Database Management System: sqlserver
- Separate Tenant Schema: Yes
- Mobile Framework: maui
- Public Website: No
- Include Tests: Yes
- Optional Modules:
- GDPR
- FileManagement
- TextTemplateManagement
- LanguageManagement
- AuditLoggingsd* OpenIddictAdmin
I am currently unable to make use of the CRUD generation to add any new type of entity with the create backend flag. When submitting the entity the process starts and fails after step 1, on console I get this message:
[11:11:20 ERR] ---------- RemoteServiceErrorInfo ----------
{
"code": null,
"message": "An internal error occurred during your request!",
"details": null,
"data": null,
"validationErrors": null
}
[11:11:20 ERR] startIndex ('-1') must be a non-negative value. (Parameter 'startIndex')
Actual value was -1.
System.ArgumentOutOfRangeException: startIndex ('-1') must be a non-negative value. (Parameter 'startIndex')
Actual value was -1.
at System.ArgumentOutOfRangeException.ThrowNegative[T](T value, String paramName)
at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length)
at System.String.Substring(Int32 startIndex)
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.k6fG8Nwwu9(Boolean , String , String )
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.f60GHSQoIS(Boolean )
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.JmRGvxnXhC()
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.ExecuteAsync(CrudPageCommandOptions options)
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options)
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution, EntityModel masterEntity, List`1 navigationConnections)
at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity)
at lambda_method2012(Closure, Object)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
I have seen many locked questions regarding similar issues, I have applied most of the solutions offered as updating the suite to latest version, making sure the Cli and the Suite are compatible based on the release notes, running suite on terminal and clearing cache and abp directories between reinstallations.
The first time I got this error I got a warning message when starting Abp Suite about mismatch versions:
I tried clicking "update" many times but the warning didnt dissappear until I reinstalled both Cli and Suite manually.
Creating a new project and adding a new entity to it works as expected. One of my teammates is still capable of running CRUDs on the same project using abp on a MAC with Cli@0.9.21 and suite@9.0.2 Is there any other configuration I could check to fix my project?
3 Answer(s)
-
0
Creating a new project and adding a new entity to it works as expected. One of my teammates is still capable of running CRUDs on the same project using abp on a MAC with Cli@0.9.21 and suite@9.0.2 Is there any other configuration I could check to fix my project?
Hi, it is really weird that your teammate is capable of generating CRUD pages, but you are not. Can you share more information about the entity metadata?
For example:
- Entity Name: Book
- Properties: Name (string), PublishDate (DateTime)
- Has 1-n or n-n relationship etc.
Also, do you have any recent solutions in this list (that might be moved to another directory)?
-
0
Good morning, the entity structure has no effect. Since the error appeared Ive tested minimal entities with just a single property for Name, no relationships. Most CRUD checkmarks work fine until I mark the 'Create backend' flag. The UI blazor pages are generated correctly if the flag is not marked.
The recent solutions were removed after reinstalling the Studio/Suite, I have also tested to remove the project from suite, clean and rebuild, re added the project. Ive uninstalled the Studio, the cli and the suite. Removed the UserProfile/.abp folder. And tested any kind of compatibility between the Cli from versions 0.9.23-0.9.19 and Suite 9.0.1-9.0.4, all having the same error.
Today I setup a new partition with a new windows, Ive reinstalled all dependencies once to the most recent versions and came up to the same error.
Edit: Checking our repo history, I had been able to generate a CRUD 2 weeks ago. However, I only needed part of the generation files so I made removed and made some changes to the generated files. My teammate successfully added many entities after this change I made. Today I checkout the version of my project before I generated my last CRUD change and this time the process failed with the same error.
-
0
Good morning, the entity structure has no effect. Since the error appeared Ive tested minimal entities with just a single property for Name, no relationships. Most CRUD checkmarks work fine until I mark the 'Create backend' flag. The UI blazor pages are generated correctly if the flag is not marked.
The recent solutions were removed after reinstalling the Studio/Suite, I have also tested to remove the project from suite, clean and rebuild, re added the project.
Ive uninstalled the Studio, the cli and the suite. Removed the UserProfile/.abp folder. And tested any kind of compatibility between the Cli from versions 0.9.23-0.9.19 and Suite 9.0.1-9.0.4, all having the same error.Today I setup a new partition with a new windows, Ive reinstalled all dependencies once to the most recent versions and came up to the same error.
Edit: Checking our repo history, I had been able to generate a CRUD 2 weeks ago. However, I only needed part of the generation files so I made removed and made some changes to the generated files. My teammate successfully added many entities after this change I made. Today I checkout the version of my project before I generated my last CRUD change and this time the process failed with the same error.
Hi again, it's really weird to hear that. I will try to reproduce the problem with different combinations and also check the code side to see why it might be happening. I will let you know ASAP.
Regards.