In order to automate data sourcing, I have an excel file that is connected to an internal Sharepoint list that updates with new data when the data connection is refreshed. The connection to the Sharepoint list is authenticated by using my Windows login. (Had to use excel file as an intermediary, because I couldn't figure out how to connect to Sharepoint list directly from Alteryx)
I want this excel file to refresh every day at 8am and am looking to automate this.
I wrote Python script using XLwings library to use API connection to refresh the excel data connection, as seen below.
The Python script runs fine on my local device but when I load the code into Alteryx server using the python tool, the workflow errors out when it comes to reading the excel file.
Below is the python script.

Anyone have success using python to refresh excel data connections in Alteryx server?