Error when try to submit Production order On Virtual Machine

I have give an error on virtual machine when click on material Transfer To Manufacturing.I use The image of use ERPNEXT 020415 and is bench update is also use.
Traceback (innermost last):
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 51, in application
response = frappe.handler.handle()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 62, in handle
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 85, in execute_cmd
ret =, **frappe.form_dict)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 718, in call
return fn(args, **newargs)
File “/home/erpnext/frappe-bench/apps/erpnext/erpnext/manufacturing/doctype/production_order/”, line 326, in make_stock_entry
production_order = frappe.get_doc(“Production Order”, production_order_id)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 470, in get_doc
return frappe.model.document.get_doc(arg1, arg2)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/model/”, line 45, in get_doc
return controller(arg1, arg2)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/model/”, line 76, in init
File “/home/erpnext/frappe-bench/apps/frappe/frappe/model/”, line 104, in load_from_db
d = frappe.db.get_value(self.doctype,, "
", as_dict=1)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 390, in get_value
ret = self.get_values(doctype, filters, fieldname, ignore, as_dict, debug)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 425, in get_values
return self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 516, in _get_values_from_table
conditions, order_by), values, as_dict=as_dict, debug=debug, update=update)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 129, in sql
self._cursor.execute(query, values)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
ValueError: month must be in 1…12

Hi @sagar

Did you at anytime use a direct sql query to modify any date / datetime in the Production Order table?

Hi @anand sir,
I dont use any query.


There seems to be some dirty data in your Production Order list.
Do the following and paste the output here:

bench mysql
select distinct expected_delivery_date, planned_start_date, planned_end_date, actual_start_date, actual_end_date from `tabProduction Order`

Also, have you added any custom fields in Production Order?

I am not use any custom fields.when use this command then give an error as per below
"Table ‘a94a8fe5cc.tabProduction order’ doesn’t exist

@sagar are you using an updated VM?

yes @rmehta Sir i am use an updated vm.