Transaction Deletion Record error

Hello,
I am running ERPNext V15 (15.14.7)

I have created the masters and did some dummy transactions.
Now I want to delete the dummy transactions. I created a Transaction Deletion Record where I am facing following two issues:

  1. The Exclude doctype section is empty
  2. When I submit the record, I get the error "Default GST Rate cannot be “18”. It should be one of “0.0”, “0.25”, “0.1”, “1.0”, “1.5”, “3.0”, “5.0”, “6.0”, “7.5”, “12.0”, “18.0”, “28.0"”

Please help.Thank you in advance

Hi @kshemankar,

When you delete a company transaction using the ‘Transaction Deletion Record’, check if the Excluded DocTypes table contains any data. If not, you may face issues.

We have checked but haven’t encountered any issues.

Thank You!

Hello,
Thank you for the reply. I updated ERPnext to V15.18.2
Now Error no 1 is gone. I can see excluded doctype there. But when I click on submit, Error no 2 is still there.
Here is the exception thrown
Status
Failed
status
Error Log
Traceback:
Traceback with variables (most recent call last):
File “apps/erpnext/erpnext/setup/doctype/transaction_deletion_record/transaction_deletion_record.py”, line 159, in execute_task
task()
self =
task_to_execute = ‘Reset Company Values’
method = ‘reset_company_values’
task = >
err = ValidationError(’ Default GST Rate cannot be “18”. It should be one of “0.0”, “0.25”, “0.1”, “1.0”, “1.5”, “3.0”, “5.0”, “6.0”, “7.5”, “12.0”, “18.0”, “28.0”‘)
File “apps/erpnext/erpnext/setup/doctype/transaction_deletion_record/transaction_deletion_record.py”, line 267, in reset_company_values
company_obj.save()
self =
company_obj =
File “apps/frappe/frappe/model/document.py”, line 335, in save
return self._save(*args, **kwargs)
self =
args = ()
kwargs = {}
File “apps/frappe/frappe/model/document.py”, line 374, in _save
self._validate()
self =
ignore_permissions = None
ignore_version = None
File “apps/frappe/frappe/model/document.py”, line 574, in _validate
self._validate_selects()
self =
File “apps/frappe/frappe/model/base_document.py”, line 883, in _validate_selects
frappe.throw(
self =
df =
options = [‘0.0’, ‘0.25’, ‘0.1’, ‘1.0’, ‘1.5’, ‘3.0’, ‘5.0’, ‘6.0’, ‘7.5’, ‘12.0’, ‘18.0’, ‘28.0’]
value = ‘18’
prefix = ‘’
label = ‘Default GST Rate’
comma_options = ‘0.0", “0.25”, “0.1”, “1.0”, “1.5”, “3.0”, “5.0”, “6.0”, “7.5”, “12.0”, “18.0”, "28.0’
File “apps/frappe/frappe/init.py”, line 602, in throw
msgprint(
msg = ’ Default GST Rate cannot be “18”. It should be one of “0.0”, “0.25”, “0.1”, “1.0”, “1.5”, “3.0”, “5.0”, “6.0”, “7.5”, “12.0”, “18.0”, “28.0”’
exc =
title = None
is_minimizable = False
wide = False
as_list = False
primary_action = None
File “apps/frappe/frappe/init.py”, line 567, in msgprint
_raise_exception()
title = None
as_table = False
as_list = False
indicator = ‘red’
alert = False
primary_action = None
is_minimizable = False
wide = False
realtime = False
sys =
_raise_exception = ._raise_exception at 0x7f025c1d3370>
inspect =
msg = ’ Default GST Rate cannot be “18”. It should be one of “0.0”, “0.25”, “0.1”, “1.0”, “1.5”, “3.0”, “5.0”, “6.0”, “7.5”, “12.0”, “18.0”, “28.0”’
out = {‘message’: ’ Default GST Rate cannot be “18”. It should be one of “0.0”, “0.25”, “0.1”, “1.0”, “1.5”, “3.0”, “5.0”, “6.0”, “7.5”, “12.0”, “18.0”, “28.0”‘, ‘title’: ‘Message’, ‘indicator’: ‘red’, ‘raise_exception’: 1, ‘__frappe_exc_id’: ‘51f3fa35052e7fa520ae383392fc58dea0e42204061b22e01f4de5ea’}
raise_exception =
File “apps/frappe/frappe/init.py”, line 518, in _raise_exception
raise exc
exc = ValidationError(’ Default GST Rate cannot be “18”. It should be one of “0.0”, “0.25”, “0.1”, “1.0”, “1.5”, “3.0”, “5.0”, “6.0”, “7.5”, “12.0”, “18.0”, “28.0”‘)
inspect =
msg = ’ Default GST Rate cannot be “18”. It should be one of “0.0”, “0.25”, “0.1”, “1.0”, “1.5”, “3.0”, “5.0”, “6.0”, “7.5”, “12.0”, “18.0”, “28.0”’
out = {‘message’: ’ Default GST Rate cannot be “18”. It should be one of “0.0”, “0.25”, “0.1”, “1.0”, “1.5”, “3.0”, “5.0”, “6.0”, “7.5”, “12.0”, “18.0”, “28.0”', ‘title’: ‘Message’, ‘indicator’: ‘red’, ‘raise_exception’: 1, ‘__frappe_exc_id’: ‘51f3fa35052e7fa520ae383392fc58dea0e42204061b22e01f4de5ea’}
raise_exception =
frappe.exceptions.ValidationError: Default GST Rate cannot be “18”. It should be one of “0.0”, “0.25”, “0.1”, “1.0”, “1.5”, “3.0”, “5.0”, “6.0”, “7.5”, “12.0”, “18.0”, “28.0”

Please check the whole topic.

Thank You!

1 Like

Thank you very much. Your suggested post has solved the problem.