0
zhongfang created
- ABP Framework version: v8.0.2
- UI Type: Blazor Server
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): no
- Exception message and full stack trace:
2024-02-06 22:41:28.225 +08:00 [INF] User profile is available. Using 'C:\Users\David\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
=== ENTITY GENERATION STARTED ===
* SOLUTION: Yee.Change.Rms
* ENTITY:{
"Id": "e1e644ee-3e78-4fd8-850d-d1bd4fe005d6",
"Name": "RuleGroup",
"OriginalName": "RuleGroup",
"NamePlural": "RuleGroups",
"DatabaseTableName": "RuleGroups",
"Namespace": "Public.RuleGroups",
"Type": 1,
"MasterEntityName": null,
"MasterEntity": null,
"BaseClass": "FullAuditedAggregateRoot",
"MenuIcon": "file-alt",
"PrimaryKeyType": "Guid",
"PreserveCustomCode": false,
"IsMultiTenant": true,
"CheckConcurrency": false,
"ShouldCreateUserInterface": true,
"ShouldCreateBackend": true,
"ShouldExportExcel": false,
"ShouldAddMigration": true,
"ShouldUpdateDatabase": true,
"CreateTests": true,
"Properties": [
{
"Id": "eeb67653-e276-4c2a-97b0-763f035007eb",
"Name": "Index",
"Type": "int",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"AllowEmptyStrings": false,
"IsTextArea": false,
"MinLength": 0,
"MaxLength": 99999999,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"ShowOnList": true,
"ShowOnCreateModal": true,
"ShowOnEditModal": true,
"ReadonlyOnEditModal": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "91caa501-4342-4bd5-b9c4-f293c36ee4ad",
"Name": "GroupName",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": true,
"AllowEmptyStrings": false,
"IsTextArea": false,
"MinLength": 2,
"MaxLength": 50,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"ShowOnList": true,
"ShowOnCreateModal": true,
"ShowOnEditModal": true,
"ReadonlyOnEditModal": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "48d9d1ff-2497-4938-b1de-8331a52533df",
"Name": "IsEnabled",
"Type": "bool",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"AllowEmptyStrings": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"ShowOnList": true,
"ShowOnCreateModal": true,
"ShowOnEditModal": true,
"ReadonlyOnEditModal": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "886c6504-0350-45da-a8f1-cdc876c7baad",
"Name": "Desc",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"AllowEmptyStrings": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": 200,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"ShowOnList": true,
"ShowOnCreateModal": true,
"ShowOnEditModal": true,
"ReadonlyOnEditModal": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "2ab33cc4-642e-4f3e-8e43-dfe1c314379e",
"Name": "Priority",
"Type": "int",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": true,
"AllowEmptyStrings": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"ShowOnList": true,
"ShowOnCreateModal": true,
"ShowOnEditModal": true,
"ReadonlyOnEditModal": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
}
],
"NavigationProperties": [
{
"EntityNameWithDuplicationNumber": "RuleSystem",
"EntitySetNameWithDuplicationNumber": "RuleSystems",
"ReferencePropertyName": "RuleSystem",
"UiPickType": "Modal",
"IsRequired": true,
"Name": "RuleSystemId",
"DisplayProperty": "Name",
"Namespace": "Yee.Change.Rms.Public.RuleSystems",
"EntityName": "RuleSystem",
"EntitySetName": "RuleSystems",
"DtoNamespace": "Yee.Change.Rms.Public.RuleSystems",
"DtoEntityName": "RuleSystemDto",
"Type": "Guid"
}
],
"NavigationConnections": [],
"ChildEntities": [],
"PhysicalFileName": "RuleGroup.json"
}
2024-02-06 22:41:53.525 +08:00 [INF] 1/16 - EntityGenerateCommand started...
2024-02-06 22:42:11.379 +08:00 [INF] 1/16 - EntityGenerateCommand completed. | Duration: 17853 ms.
2024-02-06 22:42:11.380 +08:00 [INF] 2/16 - RepositoryCommand started...
2024-02-06 22:42:11.817 +08:00 [INF] 2/16 - RepositoryCommand completed. | Duration: 437 ms.
2024-02-06 22:42:11.817 +08:00 [INF] 3/16 - ManagerCommand started...
2024-02-06 22:42:11.857 +08:00 [INF] 3/16 - ManagerCommand completed. | Duration: 39 ms.
2024-02-06 22:42:11.857 +08:00 [INF] 4/16 - AppServiceCommand started...
2024-02-06 22:42:12.159 +08:00 [INF] 4/16 - AppServiceCommand completed. | Duration: 301 ms.
2024-02-06 22:42:12.159 +08:00 [INF] 5/16 - ProxyControllerCommand started...
2024-02-06 22:42:12.202 +08:00 [INF] 5/16 - ProxyControllerCommand completed. | Duration: 42 ms.
2024-02-06 22:42:12.202 +08:00 [INF] 6/16 - PermissionCommand started...
2024-02-06 22:42:12.281 +08:00 [INF] 6/16 - PermissionCommand completed. | Duration: 78 ms.
2024-02-06 22:42:12.281 +08:00 [INF] 7/16 - ApplicationObjectMappingCommand started...
2024-02-06 22:42:12.422 +08:00 [INF] 7/16 - ApplicationObjectMappingCommand completed. | Duration: 141 ms.
2024-02-06 22:42:12.422 +08:00 [INF] 8/16 - UnitTestCommandCommand started...
2024-02-06 22:42:14.638 +08:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
"code": null,
"message": "An internal error occurred during your request!",
"details": null,
"data": {},
"validationErrors": null
}
2024-02-06 22:42:14.644 +08:00 [ERR] Could not find a part of the path 'H:\change\3rd\rms2\test\Yee.Change.Rms.Domain.Tests\Public.RuleGroups\RuleSystemsDataSeedContributor.cs'.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'H:\change\3rd\rms2\test\Yee.Change.Rms.Domain.Tests\Public.RuleGroups\RuleSystemsDataSeedContributor.cs'.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.File.OpenText(String path)
at Volo.Abp.IO.FileHelper.ReadAllTextAsync(String path) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Core\Volo\Abp\IO\FileHelper.cs:line 59
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.UnitTestCommandCommand.A5sod4Ri1A(String )
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.UnitTestCommandCommand.WyFoJ4Ndde(TestDataObject , Int32 )
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.UnitTestCommandCommand.t4IoYLE9UF()
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.UnitTestCommandCommand.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)
at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity)
at lambda_method1890(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)
2024-02-06 22:42:14.686 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'.
2024-02-06 22:42:14.688 +08:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite) in 23531.866ms
2024-02-06 22:42:14.688 +08:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite)'
2024-02-06 22:42:14.689 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:3000/api/abpSuite/crudPageGenerator/c1cde88d-939c-4050-a639-63672b729639/save-and-generate-entity - 500 null application/json; charset=utf-8 23537.0574ms
- Steps to reproduce the issue:
- run abp suite
- create a simple CRUD entity named RuleSystem
- Save and generate. completed successfully.
- Create another CURD entity named RuleGroup, which has a foreign key to RuleSystem.
- click 'Save and generate'. I got above error.
4 Answer(s)
-
0
{ "Id": "d44c01b1-218d-4255-94d8-3360c5f0fd5b", "Name": "RuleSystem", "OriginalName": "RuleSystem", "NamePlural": "RuleSystems", "DatabaseTableName": "RuleSystems", "Namespace": "Public.RuleSystems", "Type": 1, "MasterEntityName": null, "MasterEntity": null, "BaseClass": "FullAuditedAggregateRoot", "MenuIcon": "file-alt", "PrimaryKeyType": "Guid", "PreserveCustomCode": false, "IsMultiTenant": true, "CheckConcurrency": false, "ShouldCreateUserInterface": true, "ShouldCreateBackend": true, "ShouldExportExcel": false, "ShouldAddMigration": true, "ShouldUpdateDatabase": true, "CreateTests": true, "Properties": [ { "Id": "d5014240-73cc-459d-93e5-e9fcf188f32a", "Name": "Index", "Type": "int", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": false, "IsRequired": true, "AllowEmptyStrings": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "ShowOnList": true, "ShowOnCreateModal": true, "ShowOnEditModal": true, "ReadonlyOnEditModal": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "70eecf7f-f6fa-440f-bac6-8d1198b7a8c2", "Name": "Name", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": false, "IsRequired": true, "AllowEmptyStrings": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "ShowOnList": true, "ShowOnCreateModal": true, "ShowOnEditModal": true, "ReadonlyOnEditModal": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "c43f54c1-9eea-4971-8ff9-5165782deb7f", "Name": "Desc", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": false, "IsRequired": false, "AllowEmptyStrings": false, "IsTextArea": false, "MinLength": null, "MaxLength": 200, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "ShowOnList": true, "ShowOnCreateModal": true, "ShowOnEditModal": true, "ReadonlyOnEditModal": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "729b6f3e-e8f1-4126-b685-37452d71bbc8", "Name": "IsEnabled", "Type": "bool", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": false, "IsRequired": false, "AllowEmptyStrings": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "ShowOnList": true, "ShowOnCreateModal": true, "ShowOnEditModal": true, "ReadonlyOnEditModal": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "6d4bc1c6-796d-4add-8630-6c77f83216d5", "Name": "Priority", "Type": "int", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": true, "IsRequired": false, "AllowEmptyStrings": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "ShowOnList": true, "ShowOnCreateModal": true, "ShowOnEditModal": true, "ReadonlyOnEditModal": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 } ], "NavigationProperties": [], "NavigationConnections": [], "ChildEntities": [], "PhysicalFileName": "RuleSystem.json" }
-
0
{ "Id": "e1e644ee-3e78-4fd8-850d-d1bd4fe005d6", "Name": "RuleGroup", "OriginalName": "RuleGroup", "NamePlural": "RuleGroups", "DatabaseTableName": "RuleGroups", "Namespace": "Public.RuleGroups", "Type": 1, "MasterEntityName": null, "MasterEntity": null, "BaseClass": "FullAuditedAggregateRoot", "MenuIcon": "file-alt", "PrimaryKeyType": "Guid", "PreserveCustomCode": false, "IsMultiTenant": true, "CheckConcurrency": false, "ShouldCreateUserInterface": true, "ShouldCreateBackend": true, "ShouldExportExcel": false, "ShouldAddMigration": true, "ShouldUpdateDatabase": true, "CreateTests": true, "Properties": [ { "Id": "eeb67653-e276-4c2a-97b0-763f035007eb", "Name": "Index", "Type": "int", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": false, "IsRequired": false, "AllowEmptyStrings": false, "IsTextArea": false, "MinLength": 0, "MaxLength": 99999999, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "ShowOnList": true, "ShowOnCreateModal": true, "ShowOnEditModal": true, "ReadonlyOnEditModal": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "91caa501-4342-4bd5-b9c4-f293c36ee4ad", "Name": "GroupName", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": false, "IsRequired": true, "AllowEmptyStrings": false, "IsTextArea": false, "MinLength": 2, "MaxLength": 50, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "ShowOnList": true, "ShowOnCreateModal": true, "ShowOnEditModal": true, "ReadonlyOnEditModal": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "48d9d1ff-2497-4938-b1de-8331a52533df", "Name": "IsEnabled", "Type": "bool", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": false, "IsRequired": false, "AllowEmptyStrings": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "ShowOnList": true, "ShowOnCreateModal": true, "ShowOnEditModal": true, "ReadonlyOnEditModal": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "886c6504-0350-45da-a8f1-cdc876c7baad", "Name": "Desc", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": false, "IsRequired": false, "AllowEmptyStrings": false, "IsTextArea": false, "MinLength": null, "MaxLength": 200, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "ShowOnList": true, "ShowOnCreateModal": true, "ShowOnEditModal": true, "ReadonlyOnEditModal": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "2ab33cc4-642e-4f3e-8e43-dfe1c314379e", "Name": "Priority", "Type": "int", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": false, "IsRequired": true, "AllowEmptyStrings": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "ShowOnList": true, "ShowOnCreateModal": true, "ShowOnEditModal": true, "ReadonlyOnEditModal": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 } ], "NavigationProperties": [ { "EntityNameWithDuplicationNumber": "RuleSystem", "EntitySetNameWithDuplicationNumber": "RuleSystems", "ReferencePropertyName": "RuleSystem", "UiPickType": "Modal", "IsRequired": true, "Name": "RuleSystemId", "DisplayProperty": "Name", "Namespace": "Yee.Change.Rms.Public.RuleSystems", "EntityName": "RuleSystem", "EntitySetName": "RuleSystems", "DtoNamespace": "Yee.Change.Rms.Public.RuleSystems", "DtoEntityName": "RuleSystemDto", "Type": "Guid" } ], "NavigationConnections": [], "ChildEntities": [], "PhysicalFileName": "RuleGroup.json" }
-
0
Hi, this should have already been fixed. Please see the similar thread: https://support.abp.io/QA/Questions/6520/Error-when-adding-1-N-navigation-property-in-ABP-Suite-8
You probably need to make a clean uninstallation and then re-install ABP Suite to get the fixed version. Please follow steps mentioned at https://support.abp.io/QA/Questions/6520/Error-when-adding-1-N-navigation-property-in-ABP-Suite-8#answer-3a103316-d564-f4f0-b00b-a34fa1bc72d0
-
0
My problem has been resolved. Thanks for you quick reply.