Facing one issue while migration about India_compliance app

Hello ,
We are facing below error while updating our site , Can anyone please check for the same .

Migrating uatsupertech.frappe.cloud
Updating DocTypes for frappe : [========================================] 100%
Updating DocTypes for erpnext : [========================================] 100%
Updating DocTypes for supertech : [========================================] 100%
Updating DocTypes for hrms : [========================================] 100%
Updating DocTypes for payments : [========================================] 100%
Updating DocTypes for india_compliance: [========================================] 100%
Updating DocTypes for education : [========================================] 100%
Updating DocTypes for non_profit : [========================================] 100%
Updating DocTypes for healthcare : [========================================] 100%
Executing frappe.integrations.doctype.oauth_client.patches.set_default_allowed_role_in_oauth_client in uatsupertech.frappe.cloud (_5466dab015d5b772)
Set default allowed role in OAuth Client
Success: Done in 0.112s
Executing execute:from india_compliance.gst_india.setup import create_custom_fields; create_custom_fields() #47 in uatsupertech.frappe.cloud (_5466dab015d5b772)
Success: Done in 8.312s
Executing execute:from india_compliance.income_tax_india.setup import create_custom_fields; create_custom_fields() #1 in uatsupertech.frappe.cloud (_5466dab015d5b772)
Success: Done in 0.564s
Executing india_compliance.patches.post_install.update_company_fixtures #3 in uatsupertech.frappe.cloud (_5466dab015d5b772)

Traceback with variables (most recent call last):
File “”, line 198, in _run_module_as_main
mod_name = ‘frappe.utils.bench_helper’
alter_argv = True
mod_spec = ModuleSpec(name=‘frappe.utils.bench_helper’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fc87cbcfa90>, origin=‘/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py’)
code = <code object at 0x18dd780, file “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 1>
main_globals = {‘name’: ‘main’, ‘doc’: None, ‘package’: ‘frappe.utils’, ‘loader’: <_frozen_importlib_external.SourceFileLoader object at 0x7fc87cbcfa90>, ‘spec’: ModuleSpec(name=‘frappe.utils.bench_helper’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fc87cbcfa90>, origin=‘/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py’), ‘annotations’: {}, ‘builtins’: <module ‘builtins’ (built-in)>, ‘file’: ‘/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py’, ‘cached’: ‘/home/frappe/frappe-bench/apps/frappe/frappe/utils/pycache/bench_helper.cpython-311.pyc’, ‘importlib’: <module ‘importlib’ from ‘/usr/lib/python3.11/importlib/init.py’>, ‘json’: <module ‘json’ from ‘/usr/lib/python3.11/json/init.py’>, ‘os’: <module ‘os’ (frozen)>, ‘traceback’: <module ‘traceback’ from ‘/usr/lib/python3.11/traceback.py’>, ‘warnings’: <module ‘warnings’ from ‘/usr/lib/python3.11/warnings.py’>, ‘Path’: <class ‘pathlib.Path’>, ‘de…
File “”, line 88, in _run_code
code = <code object at 0x18dd780, file “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 1>
run_globals = {‘name’: ‘main’, ‘doc’: None, ‘package’: ‘frappe.utils’, ‘loader’: <_frozen_importlib_external.SourceFileLoader object at 0x7fc87cbcfa90>, ‘spec’: ModuleSpec(name=‘frappe.utils.bench_helper’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fc87cbcfa90>, origin=’/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py’), ‘annotations’: {}, ‘builtins’: <module ‘builtins’ (built-in)>, ‘file’: ‘/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py’, ‘cached’: ‘/home/frappe/frappe-bench/apps/frappe/frappe/utils/pycache/bench_helper.cpython-311.pyc’, ‘importlib’: <module ‘importlib’ from ‘/usr/lib/python3.11/importlib/init.py’>, ‘json’: <module ‘json’ from ‘/usr/lib/python3.11/json/init.py’>, ‘os’: <module ‘os’ (frozen)>, ‘traceback’: <module ‘traceback’ from ‘/usr/lib/python3.11/traceback.py’>, ‘warnings’: <module ‘warnings’ from ‘/usr/lib/python3.11/warnings.py’>, ‘Path’: <class ‘pathlib.Path’>, ‘de…
init_globals = None
mod_name = ‘main
mod_spec = ModuleSpec(name=‘frappe.utils.bench_helper’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fc87cbcfa90>, origin=’/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py’)
pkg_name = ‘frappe.utils’
script_name = None
loader = <_frozen_importlib_external.SourceFileLoader object at 0x7fc87cbcfa90>
fname = ‘/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py’
cached = ‘/home/frappe/frappe-bench/apps/frappe/frappe/utils/pycache/bench_helper.cpython-311.pyc’
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
…skipped… 27 vars
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
commands = {‘frappe’: , ‘get-frappe-commands’: , ‘get-frappe-help’: }
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
self =
args = ()
kwargs = {‘prog_name’: ‘bench’}
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
self =
args = [‘frappe’, ‘–site’, ‘uatsupertech.frappe.cloud’, ‘migrate’, ‘–skip-search-index’]
prog_name = ‘bench’
complete_var = None
standalone_mode = True
windows_expand_args = True
extra = {}
ctx = <click.core.Context object at 0x7fc87bccbc90>
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
self =
ctx = <click.core.Context object at 0x7fc87bccbc90>
_process_result = <function MultiCommand.invoke.._process_result at 0x7fc87bcdce00>
args = [‘migrate’, ‘–skip-search-index’]
cmd_name = ‘frappe’
cmd =
sub_ctx = <click.core.Context object at 0x7fc87bccbc50>
class = <class ‘click.core.MultiCommand’>
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
self =
ctx = <click.core.Context object at 0x7fc87bccbc50>
_process_result = <function MultiCommand.invoke.._process_result at 0x7fc87b6613a0>
args =
cmd_name = ‘migrate’
cmd =
sub_ctx = <click.core.Context object at 0x7fc87b6a7ed0>
class = <class ‘click.core.MultiCommand’>
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
self =
ctx = <click.core.Context object at 0x7fc87b6a7ed0>
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
_Context__self = <click.core.Context object at 0x7fc87b6a7ed0>
_Context__callback = <function migrate at 0x7fc87b62ede0>
args = ()
kwargs = {‘skip_search_index’: True, ‘skip_failing’: False}
ctx = <click.core.Context object at 0x7fc87b6a7ed0>
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/decorators.py”, line 33, in new_func
return f(get_current_context(), *args, **kwargs)
args = ()
kwargs = {‘skip_search_index’: True, ‘skip_failing’: False}
f = <function migrate at 0x7fc87b62eb60>
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 29, in _func
ret = f(frappe.dict(ctx.obj), *args, **kwargs)
ctx = <click.core.Context object at 0x7fc87b6a7ed0>
args = ()
kwargs = {‘skip_search_index’: True, ‘skip_failing’: False}
profile = False
f = <function migrate at 0x7fc87b62eac0>
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 616, in migrate
).run(site=site)
context = {‘sites’: [‘uatsupertech.frappe.cloud’], ‘force’: False, ‘verbose’: False, ‘profile’: False}
skip_failing = False
skip_search_index = True
activate_by_import = <module ‘traceback_with_variables.activate_by_import’ from ‘/home/frappe/frappe-bench/env/lib/python3.11/site-packages/traceback_with_variables/activate_by_import.py’>
SiteMigration = <class ‘frappe.migrate.SiteMigration’>
site = ‘uatsupertech.frappe.cloud’
File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 186, in run
self.run_schema_updates()
self = <frappe.migrate.SiteMigration object at 0x7fc879b2fb50>
site = ‘uatsupertech.frappe.cloud’
filelock = <function filelock at 0x7fc87949dc60>
File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 52, in wrapper
raise e
args = (<frappe.migrate.SiteMigration object at 0x7fc879b2fb50>,)
kwargs = {}
method = <function SiteMigration.run_schema_updates at 0x7fc87949d760>
File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 44, in wrapper
ret = method(*args, **kwargs)
args = (<frappe.migrate.SiteMigration object at 0x7fc879b2fb50>,)
kwargs = {}
method = <function SiteMigration.run_schema_updates at 0x7fc87949d760>
File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 121, in run_schema_updates
frappe.modules.patch_handler.run_all(
self = <frappe.migrate.SiteMigration object at 0x7fc879b2fb50>
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 76, in run_all
run_patch(patch)
skip_failing = False
patch_type = <PatchType.post_model_sync: ‘post_model_sync’>
executed = {‘erpnext.patches.v13_0.update_schedule_type_in_loans’, ‘erpnext.patches.v13_0.delete_bank_reconciliation_detail’, ‘erpnext.patches.v14_0.copy_is_subcontracted_value_to_is_old_subcontracting_flow’, ‘erpnext.patches.v14_0.correct_asset_value_if_je_with_workflow’, ‘erpnext.patches.v11_1.move_customer_lead_to_dynamic_column’, ‘erpnext.patches.v8_1.setup_gst_india #2017-06-27’, “execute:frappe.get_doc(‘Role’, ‘Guest’).save() # remove desk access”, ‘healthcare.patches.v15_0.rename_field_medical_department_in_appoitment_type_service_item’, ‘hrms.patches.v14_0.update_payroll_frequency_to_none_if_salary_slip_is_based_on_timesheet’, ‘erpnext.patches.v11_0.check_buying_selling_in_currency_exchange’, ‘erpnext.patches.v12_0.update_ewaybill_field_position’, ‘erpnext.patches.v14_0.delete_hub_doctypes’, ‘erpnext.patches.v12_0.delete_priority_property_setter’, ‘india_compliance.patches.post_install.update_hsn_code’, ‘erpnext.patches.v12_0.add_einvoice_status_field #2021-03-17’, 'erpnext.patches.v14_0…
run_patch = <function run_all..run_patch at 0x7fc877f536a0>
patches = [“execute:frappe.get_doc(‘Role’, ‘Guest’).save() # remove desk access”, ‘frappe.core.doctype.role.patches.v13_set_default_desk_properties’, ‘frappe.patches.v14_0.update_workspace2 # 06.06.2023’, ‘frappe.patches.v14_0.drop_data_import_legacy’, ‘frappe.patches.v14_0.copy_mail_data #08.03.21’, ‘frappe.patches.v14_0.update_github_endpoints #08-11-2021’, ‘frappe.patches.v14_0.remove_db_aggregation’, ‘frappe.patches.v14_0.update_color_names_in_kanban_board_column’, ‘frappe.patches.v14_0.update_is_system_generated_flag’, ‘frappe.patches.v14_0.update_auto_account_deletion_duration’, ‘frappe.patches.v14_0.update_integration_request’, ‘frappe.patches.v14_0.set_document_expiry_default’, ‘frappe.patches.v14_0.delete_data_migration_tool’, ‘frappe.patches.v14_0.set_suspend_email_queue_default’, ‘frappe.patches.v14_0.different_encryption_key’, ‘frappe.patches.v14_0.update_multistep_webforms’, “execute:frappe.delete_doc(‘Page’, ‘background_jobs’, ignore_missing=True, force=True)”, 'frappe.patches.v14

patch = ‘india_compliance.patches.post_install.update_company_fixtures #3
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 62, in run_patch
if not run_single(patchmodule=patch):
patch = ‘india_compliance.patches.post_install.update_company_fixtures #3
skip_failing = False
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 152, in run_single
return execute_patch(patchmodule, method, methodargs)
patchmodule = ‘india_compliance.patches.post_install.update_company_fixtures #3
method = None
methodargs = None
force = False
conf =
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 188, in execute_patch
_patch()
patchmodule = ‘india_compliance.patches.post_install.update_company_fixtures #3
method = None
methodargs = None
has_patch_file = True
patch = ‘india_compliance.patches.post_install.update_company_fixtures.execute’
docstring = ‘’
_patch = <function execute at 0x7fc877746480>
start_time = 50684175.37346886
File “/home/frappe/frappe-bench/apps/india_compliance/india_compliance/patches/post_install/update_company_fixtures.py”, line 25, in execute
create_income_tax_fixtures(company)
company_list = [‘Supertech Fabrics Pvt Ltd.’]
company = ‘Supertech Fabrics Pvt Ltd.’
File “/home/frappe/frappe-bench/apps/india_compliance/india_compliance/income_tax_india/overrides/company.py”, line 19, in create_company_fixtures
create_or_update_tax_withholding_category(company)
company = ‘Supertech Fabrics Pvt Ltd.’
File “/home/frappe/frappe-bench/apps/india_compliance/india_compliance/income_tax_india/overrides/company.py”, line 56, in create_or_update_tax_withholding_category
update_existing_tax_withholding_category(
company = ‘Supertech Fabrics Pvt Ltd.’
accounts =
tds_account = None
categories = [{‘name’: ‘TDS - 194C - Company’, ‘category_name’: ‘Payment to Contractors (Single / Aggregate)’, ‘doctype’: ‘Tax Withholding Category’, ‘accounts’: , ‘tds_section’: ‘194C’, ‘entity_type’: ‘Company’, ‘round_off_tax_amount’: 0, ‘consider_party_ledger_amount’: 0, ‘tax_on_excess_amount’: 0, ‘rates’: [{‘from_date’: ‘2024-04-01’, ‘to_date’: ‘2025-03-31’, ‘tax_withholding_rate’: 2, ‘single_threshold’: 30000, ‘cumulative_threshold’: 100000}]}, {‘name’: ‘TDS - 194C - Individual’, ‘category_name’: ‘Payment to Contractors (Single / Aggregate)’, ‘doctype’: ‘Tax Withholding Category’, ‘accounts’: , ‘tds_section’: ‘194C’, ‘entity_type’: ‘Individual’, ‘round_off_tax_amount’: 0, ‘consider_party_ledger_amount’: 0, ‘tax_on_excess_amount’: 0, ‘rates’: [{‘from_date’: ‘2024-04-01’, ‘to_date’: ‘2025-03-31’, ‘tax_withholding_rate’: 1, ‘single_threshold’: 30000, ‘cumulative_threshold’: 100000}]}, {‘name’: ‘TDS - 194C - No PAN / Invalid PAN’, ‘category_name’: ‘Payment to Contractors (Single / Aggregate)’,…
category_doc = {‘name’: ‘TDS - 194C - Company’, ‘category_name’: ‘Payment to Contractors (Single / Aggregate)’, ‘doctype’: ‘Tax Withholding Category’, ‘accounts’: , ‘tds_section’: ‘194C’, ‘entity_type’: ‘Company’, ‘round_off_tax_amount’: 0, ‘consider_party_ledger_amount’: 0, ‘tax_on_excess_amount’: 0, ‘rates’: [{‘from_date’: ‘2024-04-01’, ‘to_date’: ‘2025-03-31’, ‘tax_withholding_rate’: 2, ‘single_threshold’: 30000, ‘cumulative_threshold’: 100000}]}
existing_category_list = [‘TDS - 194C - Company’]
category_name = ‘TDS - 194C - Company’
File “/home/frappe/frappe-bench/apps/india_compliance/india_compliance/income_tax_india/overrides/company.py”, line 92, in update_existing_tax_withholding_category
doc.save()
category_doc = {‘name’: ‘TDS - 194C - Company’, ‘category_name’: ‘Payment to Contractors (Single / Aggregate)’, ‘doctype’: ‘Tax Withholding Category’, ‘accounts’: , ‘tds_section’: ‘194C’, ‘entity_type’: ‘Company’, ‘round_off_tax_amount’: 0, ‘consider_party_ledger_amount’: 0, ‘tax_on_excess_amount’: 0, ‘rates’: [{‘from_date’: ‘2024-04-01’, ‘to_date’: ‘2025-03-31’, ‘tax_withholding_rate’: 2, ‘single_threshold’: 30000, ‘cumulative_threshold’: 100000}]}
category_name = ‘TDS - 194C - Company’
company = ‘Supertech Fabrics Pvt Ltd.’
doc = <TaxWithholdingCategory: TDS - 194C - Company>
row = <TaxWithholdingAccount: bab1e0693e parent=TDS - 194C - Company>
largest_date = datetime.date(2025, 3, 31)
doc_row = <TaxWithholdingRate: dbf319780d parent=TDS - 194C - Company>
cat_row = {‘from_date’: ‘2024-04-01’, ‘to_date’: ‘2025-03-31’, ‘tax_withholding_rate’: 2, ‘single_threshold’: 30000, ‘cumulative_threshold’: 100000}
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 337, in save
return self._save(*args, **kwargs)
self = <TaxWithholdingCategory: TDS - 194C - Company>
args = ()
kwargs = {}
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 373, in _save
self.run_before_save_methods()
self = <TaxWithholdingCategory: TDS - 194C - Company>
ignore_permissions = None
ignore_version = None
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1091, in run_before_save_methods
self.run_method(“validate”)
self = <TaxWithholdingCategory: TDS - 194C - Company>
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 962, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
self = <TaxWithholdingCategory: TDS - 194C - Company>
method = ‘validate’
args = ()
kwargs = {}
fn = <function Document.run_method..fn at 0x7fc877636700>
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1322, in composer
return composed(self, method, args, **kwargs)
self = <TaxWithholdingCategory: TDS - 194C - Company>
args = ()
kwargs = {}
hooks = [<function apply at 0x7fc877634e00>, <function check_for_running_deletion_job at 0x7fc877636980>]
method = ‘validate’
doc_events = {'
': {‘on_update’: [‘frappe.desk.notifications.clear_doctype_notifications’, ‘frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions’, ‘frappe.core.doctype.file.utils.attach_files_to_document’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.apply’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.update_due_date’, ‘frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type’], ‘after_rename’: [‘frappe.desk.notifications.clear_doctype_notifications’], ‘on_cancel’: [‘frappe.desk.notifications.clear_doctype_notifications’, ‘frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions’, ‘frappe.automation.doctype.assignment_rule.assignment_rule.apply’, ‘healthcare.healthcare.doctype.patient_history_settings.patient_history_settings.delete_medical_record’], ‘on_trash’: [‘frappe.desk.notifications.clear_doctype_notifications’, 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow…
handler = ‘erpnext.setup.doctype.transaction_deletion_record.transaction_deletion_record.check_for_running_deletion_job’
composed = <function Document.hook..compose..runner at 0x7fc8773c0900>
compose = <function Document.hook..compose at 0x7fc8773c0720>
f = <function Document.run_method..fn at 0x7fc877636700>
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1304, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
self = <TaxWithholdingCategory: TDS - 194C - Company>
method = ‘validate’
args = ()
kwargs = {}
add_to_return_value = <function Document.hook..add_to_return_value at 0x7fc87761ab60>
fn = <function Document.run_method..fn at 0x7fc877636700>
hooks = (<function apply at 0x7fc877634e00>, <function check_for_running_deletion_job at 0x7fc877636980>)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 959, in fn
return method_object(*args, **kwargs)
self = <TaxWithholdingCategory: TDS - 194C - Company>
args = ()
kwargs = {}
method_object = <bound method TaxWithholdingCategory.validate of <TaxWithholdingCategory: TDS - 194C - Company>>
method = ‘validate’
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py”, line 39, in validate
self.validate_accounts()
self = <TaxWithholdingCategory: TDS - 194C - Company>
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py”, line 58, in validate_accounts
validate_account_head(d.idx, d.get(“account”), d.get(“company”))
self = <TaxWithholdingCategory: TDS - 194C - Company>
existing_accounts =
d = <TaxWithholdingAccount: bab1e0693e parent=TDS - 194C - Company>
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/accounts_controller.py”, line 2596, in validate_account_head
frappe.throw(
idx = 1
account = ‘TDS Payable - S’
company = ‘Supertech Fabrics Pvt Ltd.’
context = ‘’
account_company = ‘Supertech Fabrics Pvt Ltd.’
is_group = 1
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 645, in throw
msgprint(
msg = ‘Row 1: Account TDS Payable - S is a Group Account’
exc = <class ‘frappe.exceptions.ValidationError’>
title = ‘Invalid Account’
is_minimizable = False
wide = False
as_list = False
primary_action = None
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 610, in msgprint
_raise_exception()
msg = ‘Row 1: Account TDS Payable - S is a Group Account’
title = ‘Invalid Account’
raise_exception = <class ‘frappe.exceptions.ValidationError’>
as_table = False
as_list = False
indicator = ‘red’
alert = False
primary_action = None
is_minimizable = False
wide = False
realtime = False
sys = <module ‘sys’ (built-in)>
_raise_exception = <function msgprint.._raise_exception at 0x7fc8773c02c0>
out = {‘message’: ‘Row 1: Account TDS Payable - S is a Group Account’, ‘title’: ‘Invalid Account’, ‘indicator’: ‘red’, ‘raise_exception’: 1, ‘__frappe_exc_id’: ‘909f16e589e16249d9d5347a5d044872a8afe697590c9e10a54c7118’}
…skipped… 1 vars
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 561, in _raise_exception
raise exc
exc = ValidationError(‘Row 1: Account TDS Payable - S is a Group Account’)
msg = ‘Row 1: Account TDS Payable - S is a Group Account’
out = {‘message’: ‘Row 1: Account TDS Payable - S is a Group Account’, ‘title’: ‘Invalid Account’, ‘indicator’: ‘red’, ‘raise_exception’: 1, ‘__frappe_exc_id’: ‘909f16e589e16249d9d5347a5d044872a8afe697590c9e10a54c7118’}
raise_exception = <class ‘frappe.exceptions.ValidationError’>
…skipped… 1 vars
frappe.exceptions.ValidationError: Row 1: Account TDS Payable - S is a Group Account

Kindly let us know the solution what can be done in this case ?

Account specified in Tax Withholding Category “TaxWithholdingCategory: TDS - 194C - Company” is a Group Account.
You have to set valid account in Tax Withholding Category.