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:
- using references that does not exist (using {project}.Exporting;)
- Params being incorrectly generated: maxlength where it should be maxLength
- 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)
-
0
Hi @AuroraBMS,
Could you share your entity.json to reproduce it?
-
0
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 }
-
0
-
0
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.
-
0
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?