Mautic Community Forums

Strange SQL Error when trying to create new custom field

Your software
My Mautic version is: 4.1.0
My PHP version is: 7.4
My Database type and version is: mariadb 10.3

Your problem
My problem is:
I am unable to create new custom fields, I know one issue is it is telling me sometimes that I have reached my limit and now I am getting an error

These errors are showing in the log:

[2021-12-23 09:13:21] mautic.WARNING: An exception occurred while executing 'ALTER TABLE leads ADD newtest VARCHAR(255) DEFAULT NULL':  SQLSTATE[42S22]: Column not found: 1054 Unknown column '`mautic`.`l`.`email`' in 'GENERATED ALWAYS' [] []
[2021-12-23 09:13:34] mautic.WARNING: An exception occurred while executing 'ALTER TABLE leads ADD newtest VARCHAR(255) DEFAULT NULL':  SQLSTATE[42S22]: Column not found: 1054 Unknown column '`mautic`.`l`.`email`' in 'GENERATED ALWAYS' [] []

Steps I have tried to fix the problem:
Nothing yet