I have a python script that refreshes data connections, updates slicers and filters.
I'm using pywin32 to update my excel file. As I understand, updating excel slicers and filters requires COM automation.
This poses a problem for me, because I want to use task scheduler to schedule the script to run regardless of if I'm logged in or not (which runs the task in non-interactive mode).
Running the task in non-interactive mode, will cause my script to fail with the following error (-2147024891, 'Access is denied.', None, None). My script runs successfully in interactive mode, however.
Is there a way to successfully schedule my script to run regardless of if I'm logged in?