I have a list of excel files that when just using the input tool I get that it is missing the xml schema. If I open the file manually and resave it clears the error but have to do this each time the files or exported from the product. There are no API endpoints tied to this area of the product.
I have used a python tool to do this function. I use the directory tool to get a list of files within the folder that I need to open. On the python tool I install packages "xlwings" and "xlrd".
I then attempt to use the following Python code.
df = Alteryx.read("#1")
x = df['FullPath']
df['newvalue'] = df['FullPath']
import xlwings as xw
wb = xw.Book(fullname='C:\Calendar_Events_Business_PRIVILEGE_Tax.xlsx')
wb.api.RefreshAll()
wb.save(path='C:\Calendar_Events_Business_PRIVILEGE_Tax.xlsx')
It works fine if I hard code the filepath but fails when I replace the the hard coded path to pull data from the workflow.
wb = xw.Book(fullname=df['FullPath']) I get the message below. Like the variable is not passthrough.
.
