Hi team,
I tried to connect to ERP server, when someone changes Employee document on the main server then changes will be updated on the local server too. I tried to use FrappeClient connector.
So, I created on_update method for Employee where I use FrappeClient connector update method but I received the TimestampMistmatchError. Can someone recommend me something, please?
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 66, in application
response = frappe.api.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/api.py", line 95, in handle
"data": doc.save().as_dict()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 260, in save
return self._save(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 290, in _save
self.check_if_latest()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 641, in check_if_latest
raise_exception=frappe.TimestampMismatchError)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 338, in msgprint
_raise_exception()
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 311, in _raise_exception
raise raise_exception(msg)
TimestampMismatchError: Error: Document has been modified after you have opened it (2019-05-17 12:10:25.116772, 2019-05-17 12:19:16.031046). Please refresh to get the latest document.