I'm using SugarCRM 22.214.171.124 Enterprise and I've custom module from where I'm trying to send email. The email is successfully sent but the email bean is not getting saved and giving following error in log.
Thu Sep 7 15:53:57 2017 [FATAL] An exception occurred while executing 'INSERT INTO emails_beans () VALUES()':
Field 'id' doesn't have a default value
(I don't have any logic hook )
It was working before update properly but it is having issues now.