EddyBess opened a new issue, #36074: URL: https://github.com/apache/superset/issues/36074
### Bug description You must have Tagging System enabled Create a tag and tag multiples objects of the same type (example multiple queries) Go on the tag, edit tag and delete all the queries from this tag Click Save Then we get Error Updating Tag, here are the logs I have from the console : superset_app | 2025-11-11 12:23:52,866:ERROR:flask_appbuilder.api:() superset_app | Traceback (most recent call last): superset_app | File "/app/superset/utils/decorators.py", line 259, in wrapped superset_app | result = func(*args, **kwargs) superset_app | ^^^^^^^^^^^^^^^^^^^^^ superset_app | File "/app/superset/commands/tag/update.py", line 49, in run superset_app | db.session.add(self._model) superset_app | File "<string>", line 2, in add superset_app | File "/app/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2648, in add superset_app | self._save_or_update_state(state) superset_app | File "/app/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2678, in _save_or_update_state superset_app | self._save_or_update_impl(st_) superset_app | File "/app/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 3289, in _save_or_update_impl superset_app | self._update_impl(state) superset_app | File "/app/.venv/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 3259, in _update_impl superset_app | raise sa_exc.InvalidRequestError( superset_app | sqlalchemy.exc.InvalidRequestError: Instance '<TaggedObject at 0x7486d46ff6d0>' has been deleted. Use the make_transient() function to send this object back to the transient state. superset_app | superset_app | The above exception was the direct cause of the following exception: superset_app | superset_app | Traceback (most recent call last): superset_app | File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/api/__init__.py", line 111, in wraps superset_app | return f(self, *args, **kwargs) superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^ superset_app | File "/app/superset/views/base_api.py", line 120, in wraps superset_app | duration, response = time_function(f, self, *args, **kwargs) superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ superset_app | File "/app/superset/utils/core.py", line 1369, in time_function superset_app | response = func(*args, **kwargs) superset_app | ^^^^^^^^^^^^^^^^^^^^^ superset_app | File "/app/superset/utils/log.py", line 304, in wrapper superset_app | value = f(*args, **kwargs) superset_app | ^^^^^^^^^^^^^^^^^^ superset_app | File "/app/superset/tags/api.py", line 340, in put superset_app | changed_model = UpdateTagCommand(pk, item).run() superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ superset_app | File "/app/superset/utils/decorators.py", line 266, in wrapped superset_app | return on_error(ex) superset_app | ^^^^^^^^^^^^ superset_app | File "/app/superset/utils/decorators.py", line 234, in on_error superset_app | raise reraise() from ex superset_app | sqlalchemy.exc.SQLAlchemyError: () I perform this on a clean version of superset, only with the examples loaded just to be sure. We are using sperset 4.1.2 and the problem is still there ### Screenshots/recordings _No response_ ### Superset version 5.0.0 ### Python version 3.9 ### Node version 16 ### Browser Chrome ### Additional context _No response_ ### Checklist - [ ] I have searched Superset docs and Slack and didn't find a solution to my problem. - [ ] I have searched the GitHub issue tracker and didn't find a similar bug report. - [ ] 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]
