Hi,
I got this error in scheduler task:
Method: daily, Handler: erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year
Traceback (innermost last):
File "/home/vef1/frappe-bench/apps/frappe/frappe/tasks.py", line 89, in scheduler_task
frappe.get_attr(handler)()
File "/home/vef1/frappe-bench/apps/erpnext/erpnext/accounts/doctype/fiscal_year/fiscal_year.py", line 66, in auto_create_fiscal_year
new_fy.insert()
File "/home/vef1/frappe-bench/apps/frappe/frappe/model/document.py", line 192, in insert
self.run_before_save_methods()
File "/home/vef1/frappe-bench/apps/frappe/frappe/model/document.py", line 589, in run_before_save_methods
self.run_method("validate")
File "/home/vef1/frappe-bench/apps/frappe/frappe/model/document.py", line 551, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File "/home/vef1/frappe-bench/apps/frappe/frappe/model/document.py", line 706, in composer
return composed(self, method, *args, **kwargs)
File "/home/vef1/frappe-bench/apps/frappe/frappe/model/document.py", line 689, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/vef1/frappe-bench/apps/frappe/frappe/model/document.py", line 545, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/vef1/frappe-bench/apps/erpnext/erpnext/accounts/doctype/fiscal_year/fiscal_year.py", line 30, in validate
frappe.throw(_("Cannot change Fiscal Year Start Date and Fiscal Year End Date once the Fiscal Year is saved."))
File "/home/vef1/frappe-bench/apps/frappe/frappe/__init__.py", line 257, in throw
msgprint(msg, raise_exception=exc)
File "/home/vef1/frappe-bench/apps/frappe/frappe/__init__.py", line 250, in msgprint
_raise_exception()
File "/home/vef1/frappe-bench/apps/frappe/frappe/__init__.py", line 235, in _raise_exception
raise raise_exception, encode(msg)
ValidationError: Cannot change Fiscal Year Start Date and Fiscal Year End Date once the Fiscal Year is saved.
Before I have made 2016 fiscal year. Does it cause this error?