Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Workaround for 10mb email attachment limit

vdix
7 - Meteor

Is there a way to compress .xlsx files before adding them as attachment? If so, please share a sample workflow, i have been trying to create a run command but it hasn't worked.

6 REPLIES 6
IraWatt
17 - Castor
17 - Castor

Hey @vdix,

 

I don't know if this would work perfectly but what I would do is use the Block Until Done Tool to do each step of the process:

IraWatt_0-1661441890705.png

First Save the Excel File

Second use a zip tool command or use @Aguisande Zip Files Tool - Alteryx Community Tool

Finally using Email Tool to attach the file using a column containing the Zip File address

 

Any questions or issues please ask

Ira Watt
Technical Consultant
Watt@Bulien.com 

vdix
7 - Meteor

I get this error in the run command

 

Error: Run Command (15): The external program "powershell" returned an error code: 1

IraWatt
17 - Castor
17 - Castor

@vdix which tool is causing this error?

vdix
7 - Meteor

In the powershell I get this error after running the script using powershell:

At C:\Users\AppData\Local\Temp\1\Engine_\Zipscript.ps1:1 char:36
+ $compress=@{ LiteralPath='out.xlsx'CompressionLevel='Fastest' Destina ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'CompressionLevel='Fastest'' in expression or statement.
At C:\Users\AppData\Local\Temp\1\Engine_\Zipscript.ps1:1 char:36
+ $compress=@{ LiteralPath='out.xlsx'CompressionLevel='Fastest' Destina ...
+ ~
The hash literal was incomplete.
At C:\Users\AppData\Local\Temp\1\Engine_\Zipscript.ps1:1 char:103
+ ... sionLevel='Fastest' DestinationPath='out.xlsx\out.xlsx.zip' } Try{ Co ...
+ ~
Unexpected token '}' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken

 

 

Could you share a simple workflow using the macro if possible so i could see if i'm not configuring it right?

AnaKomissaroff
7 - Meteor

Was this problem solved:

Error: Run Command (15): The external program "powershell" returned an error code: 1  ??

apathetichell
18 - Pollux

@AnaKomissaroff - that's your system (and probably your permissions). That's not an Alteryx issue.

Labels