Error cannot save form data

Hi,

I try to create new record but I have a error: ‘canot save form data’

In first, I open a database transaction
then a create a new record on a form (form1)
and I open another form (form2)

databaseManager.startTransaction()
forms.form1.controller.newRecord(false)
forms.form2.controller.show()

Kinds regards,