Base solution for your next web application
Open Closed

Entity generation Failure & other errors #12277


User avatar
0
AuroraBMS created

Version: 12.4 Template: Core Angular

We are trying to regenerate an entity but we are unable complete it without the below error:

This is just a standard base entity that we have generated on another branch before without issues.

Other errors during generation that also occurs:

  1. using references that does not exist (using {project}.Exporting;)
  2. Params being incorrectly generated: maxlength where it should be maxLength
  3. Fk (Nav Props) fields being generated with increment numbers if more than 1 of the same FK is used for different properties.

Is this a known issue that can be resolved as we are unable to regenerate entities now?


5 Answer(s)
  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @AuroraBMS,

    Could you share your entity.json to reproduce it?

  • User Avatar
    0
    AuroraBMS created

    Hi Another issue,

    I have asked other team members now to check their versions, mine that is giving errors is currently on 4.5.1 and the rest which works is on 4.2.0. This is an upgrade related issue it seems and I don't know if there is an option for downgrading?

    We are unable to select type Enum, it returns a blank list then the below error.

    Below Json structure for generation.

    { "IsRegenerate": true, "MenuPosition": "main", "RelativeNamespace": "InventoryManagement", "EntityName": "StockLevelManagementSetup", "EntityNamePlural": "StockLevelManagementSetups", "TableName": "StockLevelManagementSetups", "PrimaryKeyType": "int", "BaseClass": "FullAuditedEntity", "EntityHistory": true, "AutoMigration": true, "UpdateDatabase": true, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "CreateExcelImport": true, "IsNonModalCRUDPage": false, "IsMasterDetailPage": false, "GenerateOverridableEntity": true, "GenerateUnitTest": true, "GenerateUiTest": true, "GenerateMobile": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "WarehouseGroup", "Type": "StockLevelWarehouseGroups", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": true, "List": true, "ListMaui": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "MinimumLevel", "Type": "int", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": true, "List": true, "ListMaui": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "ReOrderLevel", "Type": "int", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": true, "List": true, "ListMaui": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "OptimalLevel", "Type": "int", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": true, "List": true, "ListMaui": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} } ], "NavigationProperties": [ { "Namespace": "BRM.MasterData", "ForeignEntityName": "Warehouse", "ForeignEntityNamePlural": "Warehouses", "IdType": "int", "IsNullable": true, "PropertyName": "WarehouseId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "Code" ] } }, { "Namespace": "BRM.MasterData", "ForeignEntityName": "BusinessPartner", "ForeignEntityNamePlural": "BusinessPartners", "IdType": "int", "IsNullable": true, "PropertyName": "BusinessPartnerId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "CardCode" ] } }, { "Namespace": "BRM.MasterData", "ForeignEntityName": "BinLocation", "ForeignEntityNamePlural": "BinLocations", "IdType": "int", "IsNullable": true, "PropertyName": "BinLocationId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "BinLocationCode" ] } }, { "Namespace": "BRM.MasterData", "ForeignEntityName": "ItemGroup", "ForeignEntityNamePlural": "ItemGroups", "IdType": "int", "IsNullable": true, "PropertyName": "DivisionItemGroupId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "ItemGroupCode" ] } }, { "Namespace": "BRM.MasterData", "ForeignEntityName": "Warehouse", "ForeignEntityNamePlural": "Warehouses", "IdType": "int", "IsNullable": true, "PropertyName": "SupplyWarehouseId", "DuplicationNumber": 2, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "Code" ] } }, { "Namespace": "BRM.MasterData", "ForeignEntityName": "Product", "ForeignEntityNamePlural": "Products", "IdType": "int", "IsNullable": true, "PropertyName": "ProductId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": "{0}", "DisplayPropertyNames": [ "ProductCode" ] } } ], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [ { "Name": "StockLevelWarehouseGroups", "Namespace": "BRM.InventoryManagement", "EnumProperties": [ { "Name": "TerritoryManagerConsignment", "Value": 1 }, { "Name": "BusinessPartnerConsignment", "Value": 2 }, { "Name": "MainWarehouse", "Value": 3 }, { "Name": "BranchWarehouse", "Value": 4 } ] } ], "DbContext": null }

  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @AuroraBMS,

    There is no downgrade option at the moment.

    I can't reproduce this error with json. We will patch other problems as soon as possible.

  • User Avatar
    0
    AuroraBMS created

    Is there other power tools logs available that can be sent?

    We are starting a migration to V14 and if we encounter this there our next 3 months of planned projects is out the window.

  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @AuroraBMS,

    No need to worry, we are releasing Power Tools and Zero separately. We fix bugs faster in Power Tools.

    Are you still getting the first error?