Hi @NhanNguyen , Hope you are doing well!
Can you please confirm which cluster access mode you are using to run the above notebook command?
As per the error details in the screenshot, I am assuming you are using catalog.clear_cache on the Shared Cluster mode and currently, the "catalog.clear_cache" feature does not support shared cluster mode and is only applicable for single-user mode or no isolation shared mode. This limitation is due to the current design of shared clusters in Databricks.
So in case you are using the shared cluster mode, could you please try to run the commands on the Single User or no-isolation shared access mode?
Please let me know if this helps and leave a like if this information is useful, followups are appreciated.
Kudos
Ayushi