We’re having some issues with the excel export where some fields are missing on the product to export. The fields exist on the field template (with no name) but not under product > fields in settings.
Can’t really re-generate the fields as they cannot be removed. Tried to remove them from the field template but they get added again.
It does not exist anything in Litium that automatic create fields, in all similar cases the project have added code to automatic create fields when Litium is starting.
Check the DefinitionSetup in the accelerator code to see if that can be the one that are creating the fields.
Sounds like you’re updating the field template from code referencing a field that doesn’t exist. Are the missing fields referenced in ProductsFieldTemplateSetup?
In the default Accelerator fields are only created from code once, there’s a check IsAlreadyExecuted that prevents fields from being created multiple times. Maybe the field was removed after it was initially created?
You can delete the key from the Common.Setting table (looks like this acceleratorbuilder:litium.fieldframework.fielddefinition:productarea:weight for example) or disable the check mentioned above. This would allow the field to be created again from code.