squalou opened a new issue, #41455:
URL: https://github.com/apache/superset/issues/41455

   ### Bug description
   
   In a Table chart, use "download as" choose "Excel", and ... get an error 500.
   
   Export to CSV works.
   Export to Excel for the same chart works on 6.0.0
   
   I wonder if it may be related to 
https://github.com/apache/superset/pull/38176
   
   Server logs show this
   
   ```py
   TypeError: superset.utils.excel.df_to_excel() got multiple values for 
keyword argument 'index'
   2026-06-26 
13:07:39,189:ERROR:superset.views.error_handling:superset.utils.excel.df_to_excel()
 got multiple values for keyword argument 'index'
   Traceback (most recent call last):
     File "/app/.venv/lib/python3.10/site-packages/flask/app.py", line 1484, in 
full_dispatch_request
       rv = self.dispatch_request()
     File "/app/.venv/lib/python3.10/site-packages/flask/app.py", line 1469, in 
dispatch_request
       return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
     File 
"/app/.venv/lib/python3.10/site-packages/flask_appbuilder/security/decorators.py",
 line 101, in wraps
       return f(self, *args, **kwargs)
     File "/app/superset/views/base_api.py", line 120, in wraps
       duration, response = time_function(f, self, *args, **kwargs)
     File "/app/superset/utils/core.py", line 1559, in time_function
       response = func(*args, **kwargs)
     File "/app/superset/utils/log.py", line 299, in wrapper
       value = f(*args, add_extra_log_payload=log, **kwargs)
     File "/app/superset/charts/data/api.py", line 289, in data
       return self._get_data_response(
     File "/app/superset/utils/log.py", line 301, in wrapper
       value = f(*args, **kwargs)
     File "/app/superset/charts/data/api.py", line 496, in _get_data_response
       result = command.run(force_cached=force_cached)
     File "/app/superset/commands/chart/data/get_data_command.py", line 46, in 
run
       payload = self._query_context.get_payload(
     File "/app/superset/common/query_context.py", line 99, in get_payload
       return self._processor.get_payload(cache_query_context, force_cached)
     File "/app/superset/common/query_context_processor.py", line 353, in 
get_payload
       query_results = [
     File "/app/superset/common/query_context_processor.py", line 354, in 
<listcomp>
       get_query_results(
     File "/app/superset/common/query_actions.py", line 290, in 
get_query_results
       return result_func(query_context, query_obj, force_cached)
     File "/app/superset/common/query_actions.py", line 167, in _get_full
       payload["data"] = query_context.get_data(df, payload["coltypes"])
     File "/app/superset/common/query_context.py", line 91, in get_data
       return self._processor.get_data(df, coltypes)
     File "/app/superset/common/query_context_processor.py", line 262, in 
get_data
       result = excel.df_to_excel(
   TypeError: superset.utils.excel.df_to_excel() got multiple values for 
keyword argument 'index'
   ```
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   6.1.0
   
   ### Python version
   
   3.10
   
   ### Node version
   
   Not applicable
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to