Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I asked this over on the Alteryx forums and unfortunately didn’t get any answer.
Hopefully someone here with Alteryx/PS experience will know the issue. I have a workflow that runs a batch file with a tabcmd command to export data from tableau into a csv in a share drive folder. Then a powershell script runs that reorders the columns, and moves them to another folder.
Finally, a second powershell script runs, converts the csv to xlsx and exports that to another folder. When I run it locally in Alteryx Designer, it works just fine and I get the expected output. When I run it in Alteryx Gallery, the workflow completes with no errors but it doesn’t give me the expected out. It goes through the tabcmd step and the first powershell script with the correct output, but does not perform the second powershell script correctly.
Please see below for script, the — are there to omit sensitive information.
$SharedDriveFolderPath = "\\---\shares\Groups\---\---\---\---\--\B\"
$files = Get-ChildItem $SharedDriveFolderPath -Filter *.csv
foreach ($f in $files){
$outfilename = $f.BaseName +'.xlsx'
$outfilename
#Define locations and delimiter
$csv = "\\---\shares\Groups\---\---\---\---\--\B\$f" #Location of the source file
$xlsx = "\\---\shares\Groups\---\---\---\---\---\---\C\$outfilename"
#Desired location of output
$delimiter = "," #Specify the delimiter used in the file
# Create a new Excel workbook with one empty sheet
$excel = New-Object -ComObject excel.application
$workbook = $excel.Workbooks.Add(1)
$worksheet = $workbook.worksheets.Item(1)
# Build the QueryTables.Add command and reformat the data
$TxtConnector = ("TEXT;" + $csv)
$Connector = $worksheet.QueryTables.add($TxtConnector,$worksheet.Range("A1"))
$query = $worksheet.QueryTables.item($Connector.name)
$query.TextFileOtherDelimiter = $delimiter
$query.TextFileParseType = 1
$query.TextFileColumnDataTypes = ,1 * $worksheet.Cells.Columns.Count
$query.AdjustColumnWidth = 1
# Execute & delete the import query
$query.Refresh()
$query.Delete()
# Save & close the Workbook as XLSX.
$Workbook.SaveAs($xlsx,51)
$excel.Quit()
}
bngypfwhvjnyidm
e4cae417fdc741e0ab200f8d384713
116394ca073b4f59a7d140cc23e444
0d46685ff370452cb0d5923fa4beeb
d15eb8478c2b4e9f967af53b70eb84
fa67bc2bfdcd40d999abfc928af7f4
HappyTurquoiseMorel
tvcsop
2b7fefb7c4754ed5894601dac5191d
SandyLightSeaGreenRaft
777660d35d5648a38934aaa4666965
BubblyBlueRay