Field 'ref' doesn't have a default value

Hello,

I’m getting “Field ‘ref’ doesn’t have a default value” error while logging expense record (…compta/bank/various_payment/card.php ). Can anyone help provide solution.

Thanks in advance.

Hello,

Can you activate the dolibarr log module, then reproduce the error and then send the log file ?

Thanks.

Hello Ksar,

Please find attached log file.

Thanks.

Hi,

There is no file attached.
If you want you can post it on https://pastebin.com/

Please check link…

https://pastebin.com/e71hEz5F

also please check

www.dolibarr.org/t/sql-error-db-error-1366-1452-field-ref/17518/1

Thanks