'NoneType' object has no attribute 'update'

I am having this error when try to upload and download the json of GSTR1 , Any responce will be appreciated. @Smit_Vora @Lakshit_Jain

{
	"frappe": "16.16.0",
	"erpnext": "16.15.1",
	"india_compliance": "16.3.2",
	"hrms": "16.5.0",
	"payments": "0.0.1",
	"lending": "0.0.1",
	"insights": "3.8.0",
	"rolex_custom": "0.0.1"
}

Route

Form/GSTR-1/GSTR-1

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 121, in application
    response = frappe.api.handle(request)
  File "apps/frappe/frappe/api/__init__.py", line 63, in handle
    data = endpoint(**arguments)
  File "apps/frappe/frappe/api/v1.py", line 40, in handle_rpc_call
    return frappe.handler.handle()
           ~~~~~~~~~~~~~~~~~~~~~^^
  File "apps/frappe/frappe/handler.py", line 53, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 86, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
           ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1129, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/utils/typing_validations.py", line 36, in wrapper
    return func(*args, **kwargs)
  File "apps/india_compliance/india_compliance/gst_india/api_classes/taxpayer_base.py", line 42, in wrapper
    raise e
  File "apps/india_compliance/india_compliance/gst_india/api_classes/taxpayer_base.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "apps/india_compliance/india_compliance/gst_india/doctype/gstr_1/gstr_1.py", line 207, in perform_gstr1_action
    data = get_gstr_1_json(
        company_gstin,
    ...<2 lines>...
        delete_missing=True,
    )
  File "apps/frappe/frappe/utils/typing_validations.py", line 36, in wrapper
    return func(*args, **kwargs)
  File "apps/india_compliance/india_compliance/gst_india/doctype/gstr_1/gstr_1_export.py", line 2112, in get_gstr_1_json
    data = data.update(data.pop("aggregate_data", {}))
           ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'update'

Request Data

{
	"type": "POST",
	"args": {
		"month_or_quarter": "April",
		"year": "2026",
		"company_gstin": "29ABFFR5985B1ZU",
		"action": "upload_gstr1",
		"force": false
	},
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/india_compliance.gst_india.doctype.gstr_1.gstr_1.perform_gstr1_action",
	"request_id": "dada315c-8c2d-4390-a7c7-f89bdca9a2dd"
}

Response Data

{
	"exception": "AttributeError: 'NoneType' object has no attribute 'update'",
	"exc_type": "AttributeError",
	"_exc_source": "india_compliance (app)"
}

checking

Can you regenerate GSTR-1 data and try again ?

Should i take pull from India Complaince app before trying again ?

Is there any way to download the JSON of only B2C and other required category in GSTR1? Right now when we click on Download Json it will download the json for all the category which is’nt required to file, we only need B2c and HSN and document issued, how can i achieve that ?