Starts in:
2 DAYS
21 HRS
39 MIN
36 SEC
Starts in:
2 D
21 H
39 M
36 S
Open Closed

Error generating with ABP Suite #6290


User avatar
0
david.hurtado created

Im trying to generate a new module using abp sute and i get an error. How i could solve this? I'm using as Base class a AuditedAggregateRoot

Some of properties are Enums. Has navigations to multiple modules

  • ABP Framework version: v7.0.1
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server,)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • [08:54:38 ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": {}, "validationErrors": null }

[08:54:38 ERR] After parsing a value an unexpected character was encountered: E. Path 'Texts.MaxTipoDeMeta', line 1374, position 5. Newtonsoft.Json.JsonReaderException: After parsing a value an unexpected character was encountered: E. Path 'Texts.MaxTipoDeMeta', line 1374, position 5. at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments) at Newtonsoft.Json.JsonTextReader.Read() at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContra

  • Steps to reproduce the issue:

4 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, how to reproduce it? Can you give more information, please (entities, properties etc.)?

  • User Avatar
    0
    david.hurtado created

    This is the defition. 2023-12-06 09:14:34.333 -04:00 [INF] === ENTITY GENERATION STARTED ===

    • SOLUTION: Galac.Tickets
    • ENTITY:{ "Id": "1598cd96-844b-44cf-882b-c209ad4a150e", "Name": "MetaDeVenta", "OriginalName": "MetaDeVenta", "NamePlural": "MetasDeVenta", "DatabaseTableName": "MetasDeVenta", "Namespace": "MetasDeVenta", "BaseClass": "AuditedAggregateRoot", "MenuIcon": "chart-bar", "PrimaryKeyType": "Guid", "IsMultiTenant": true, "CheckConcurrency": true, "ShouldCreateUserInterface": true, "ShouldCreateBackend": true, "ShouldExportExcel": true, "ShouldAddMigration": true, "ShouldUpdateDatabase": false, "CreateTests": false, "Properties": [ { "Id": "d8aa47c9-d52e-409e-a5ec-b37faa6055d4", "Name": "CompaniaId", "Type": "long", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": "0", "IsNullable": false, "IsRequired": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 1, "SortType": 1, "Regex": "", "EmailValidation": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "3472ed49-6f55-40a0-9f03-eb94c4d80f89", "Name": "TipoDeMeta", "Type": "enum", "EnumType": "TipoDeMeta", "EnumNamespace": "Galac.Tickets.Enums", "EnumAngularImport": "shared/enums/tipo-de-meta", "EnumFilePath": "/src/Galac.Tickets.Domain.Shared/Enums/TipoDeMeta.cs", "DefaultValue": null, "IsNullable": false, "IsRequired": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": { "MontoCobranza": 0, "Cantidad": 1, "MontoVenta": 2, "MontoMargenVentas": 3 }, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "86dc79fd-8db0-4722-9e9c-b06364784edb", "Name": "TipoDePeriodo", "Type": "enum", "EnumType": "Desglose", "EnumNamespace": "Galac.Tickets.Enums", "EnumAngularImport": "shared/enums/desglose", "EnumFilePath": "/src/Galac.Tickets.Domain.Shared/Enums/Desglose.cs", "DefaultValue": null, "IsNullable": false, "IsRequired": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": { "Mensual": 0, "Trimestral": 1, "Semestral": 2, "Anual": 3 }, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "0c337e17-9919-41bc-8990-1f4683e73cd0", "Name": "PeriodoDesde", "Type": "DateTime", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": false, "IsRequired": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 2, "SortType": 1, "Regex": "", "EmailValidation": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "048cb5e6-1943-4de9-9552-8af377d4a23b", "Name": "PeriodoHasta", "Type": "DateTime", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": null, "IsNullable": false, "IsRequired": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 3, "SortType": 1, "Regex": "", "EmailValidation": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "4708cb3c-0b9f-4d53-8e6e-d468fc22a4fa", "Name": "AplicaA", "Type": "enum", "EnumType": "TodosUno", "EnumNamespace": "Galac.Tickets.Enums", "EnumAngularImport": "shared/enums/todos-uno", "EnumFilePath": "/src/Galac.Tickets.Domain.Shared/Enums/TodosUno.cs", "DefaultValue": null, "IsNullable": false, "IsRequired": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": { "Todos": 0, "Uno": 1 }, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "9f976ead-0f38-44be-b319-9c3c63769407", "Name": "ComisionaAPartirDe", "Type": "decimal", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": "0", "IsNullable": false, "IsRequired": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "137e808f-8c24-4055-bdb8-be2d04cfdf1d", "Name": "TipoDeComision", "Type": "enum", "EnumType": "TipoDeComision", "EnumNamespace": "Galac.Tickets.Enums", "EnumAngularImport": "shared/enums/tipo-de-comision", "EnumFilePath": "/src/Galac.Tickets.Domain.Shared/Enums/TipoDeComision.cs", "DefaultValue": null, "IsNullable": false, "IsRequired": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": { "Porcentaje": 0, "Monto": 1 }, "IsSelected": true, "OrdinalIndex": 0 }, { "Id": "441d6f43-db2d-4740-9461-fac3f1011d77", "Name": "Comision", "Type": "decimal", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "EnumFilePath": null, "DefaultValue": "0", "IsNullable": false, "IsRequired": false, "IsTextArea": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null, "IsSelected": true, "OrdinalIndex": 0 } ], "NavigationProperties": [ { "EntityNameWithDuplicationNumber": "TipoVendedor", "EntitySetNameWithDuplicationNumber": "TipoVendedors", "ReferencePropertyName": "TipoVendedor", "UiPickType": "Dropdown", "IsRequired": true, "Name": "TipoVendedorId", "DisplayProperty": "Descripcion", "Namespace": "Galac.Tickets.TipoVendedores", "EntityName": "TipoVendedor", "EntitySetName": "TipoVendedors", "DtoNamespace": "Galac.Tickets.TipoVendedores", "DtoEntityName": "TipoVendedorDto", "Type": "Guid" }, { "EntityNameWithDuplicationNumber": "LineaDeProducto", "EntitySetNameWithDuplicationNumber": "LineaDeProductos", "ReferencePropertyName": "LineaDeProducto", "UiPickType": "Dropdown", "IsRequired": false, "Name": "LineaDeProductoId", "DisplayProperty": "Nombre", "Namespace": "Galac.Tickets.LineasDeProducto", "EntityName": "LineaDeProducto", "EntitySetName": "LineaDeProductos", "DtoNamespace": "Galac.Tickets.LineasDeProducto", "DtoEntityName": "LineaDeProductoDto", "Type": "Guid" }, { "EntityNameWithDuplicationNumber": "Categoria", "EntitySetNameWithDuplicationNumber": "Categorias", "ReferencePropertyName": "Categoria", "UiPickType": "Dropdown", "IsRequired": false, "Name": "CategoriaId", "DisplayProperty": "Descripcion", "Namespace": "Galac.Tickets.Categorias", "EntityName": "Categoria", "EntitySetName": "Categorias", "DtoNamespace": "Galac.Tickets.Categorias", "DtoEntityName": "CategoriaDto", "Type": "Guid" }, { "EntityNameWithDuplicationNumber": "IdentityUser", "EntitySetNameWithDuplicationNumber": "IdentityUsers", "ReferencePropertyName": "IdentityUser", "UiPickType": "Typeahead", "IsRequired": false, "Name": "IdentityUserId", "DisplayProperty": "Name", "Namespace": "Volo.Abp.Identity", "EntityName": "IdentityUser", "EntitySetName": "IdentityUsers", "DtoNamespace": "Volo.Abp.Identity", "DtoEntityName": "IdentityUserDto", "Type": "Guid" }, { "EntityNameWithDuplicationNumber": "Moneda", "EntitySetNameWithDuplicationNumber": "Monedas", "ReferencePropertyName": "Moneda", "UiPickType": "Typeahead", "IsRequired": true, "Name": "MonedaId", "DisplayProperty": "Nombre", "Namespace": "Galac.Tickets.Monedas", "EntityName": "Moneda", "EntitySetName": "Monedas", "DtoNamespace": "Galac.Tickets.Monedas", "DtoEntityName": "MonedaDto", "Type": "int" } ], "NavigationConnections": [], "PhysicalFileName": "MetaDeVenta.json" }

    2023-12-06 09:14:34.333 -04:00 [INF] 1/13 - EntityGenerateCommand started... 2023-12-06 09:14:34.647 -04:00 [ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": {}, "validationErrors": null }

  • User Avatar
    0
    david.hurtado created

    And this is the complete log of the error 2023-12-06 09:14:34.647 -04:00 [ERR] After parsing a value an unexpected character was encountered: E. Path 'Texts.MaxTipoDeMeta', line 1374, position 5. Newtonsoft.Json.JsonReaderException: After parsing a value an unexpected character was encountered: E. Path 'Texts.MaxTipoDeMeta', line 1374, position 5. at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments) at Newtonsoft.Json.JsonTextReader.Read() at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.LocalizationService.AddLocalizationsAsync(Dictionary2 localizations, CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.LocalizationService.AddLocalizationsAsync(CrudPageCommandOptions options, Dictionary2[] localizations) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.ChcUcfTecn() 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) at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity) at lambda_method1872(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.

  • User Avatar
    0
    david.hurtado created

    Thanks for your help the error was missformatin on .json localizer lenguage file Change the line of code and it's works properly

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06