Bench console not working

I am trying to insert a document for that I used the frappe.get_doc() method, the method is executing without any errors but the results are not visible in the list of documents. I tried running this method on bench console still no results.

This is the simple script I tried running in the bench console there aren’t any errors but Document is not getting inserted:

doc = frappe.get_doc({
‘doctype’: ‘Task’,
‘title’: ‘New Task’,
‘subject’:‘Something’
})
doc.save()

1 Like

Thanks for the solution. It worked!