Learn more about the Alteryx Maveryx Universe recently announced at Inspire 2023!

Alteryx Designer Desktop Discussions

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

Email Tool - Corrupted Attachment

jsdn14
7 - Meteor

Hello all,

 

I'm facing a problem with the email tool, mainly with the attachment option.

I need to attach a word document to send several emails, the problem is when I sent the emails the files are corrupted and people can't open it, I tried converting to pdf but no success and also I tried saving the files in One Drive but didn't work.

 

jsdn14_0-1574354559017.png

 

I'm curious because when I attached an excel file then the people receive the email with the attachment working correctly.

Below is a screenshot of the error, the file in my computer works well and I can open it without any problem so I don't know if it's something Alteryx does when sending the email:

jsdn14_1-1574354795947.png

 

Please let me know if you need more details and thanks for the help!

 

20 REPLIES 20
DiganP
Alteryx Alumni (Retired)

@jsdn14 Are you using the render tool to output the dataset and save it as a docx or pdf? You can use this tool to output and then specify the attachments in the email tool to pick it up. Make sure you use the block until done tool to output first then use the email tool. 

 

Let me know if this helps or need further clarification. 

Digan
Alteryx
jsdn14
7 - Meteor

Hello,

 

The pdf&docx that I'm using is a file that is not generated by the alteryx workflow.

 

I notice that doing the same but in version 2019.1 works well, I had the problem in 2019.3.

MonBrazier
8 - Asteroid

I'm having the same problem - on 2019.3 😞

 

I generate an Excel file via Render within my workflow and use a block until done tool.

 

The Excel file is generated perfectly by the Render (when opening directly from the path specified in the Render tool), but when opening the Excel file attached to the email, the Excel file is corrupt.

MonBrazier_0-1574909266359.png

 

Very interested to follow this thread. Hopefully someone has a fix or an idea!

ntobon
Alteryx
Alteryx

You are running into a known Defect: "DE22485 - workflow runs and sends out the email message with the attachment, but the attachment is corrupted".  

 

This Defect is still Open and being reviewed by our development team. 

 

Workaround: 
It seems if the body of the email is hardcoded, this will send out a corrupted attachment. However, if you use a field for the body, this will work. So, add a field for body rather than using text in the text box.

 

kp10
6 - Meteoroid

The solution you suggested isn't working for me. Is this issue resolved?

ntobon
Alteryx
Alteryx

@kp10  Defect DE22485 is still open. 

 

Can you try with a simply workflow like this?

 

ntobon_1-1578582263642.png

 

Report Text tool configuration:

 

ntobon_2-1578582302240.png

 

Email tool Configuration:

 

ntobon_3-1578582341295.png

 

 

pdxsvrider
7 - Meteor

Just wanted to say this worked for me

 

What a relief. I just started the slow and painful process of downgrading versions when I came across this while waiting for my download.

Bobbyt23
7 - Meteor

I have just tried this fix and get the following error when I run it through our Alteryx Server:

 

Error
67Record#1: Failure when receiving data from the peer

 

The workflow works with text in the body but the attachment is corrupt but it fails when I use a field in the body.

 

Any ideas on what else I could do?

pdxsvrider
7 - Meteor

I'm kind of a rookie on this topic but this is what worked for me.

I added a Report Text tool before the Email tool.

pdxsvrider_0-1579804444346.png



Here is the Report Text tool Configuration:

pdxsvrider_1-1579804457702.png



Here is my Email tool Configuration:

pdxsvrider_2-1579804470226.png



After making this minor change, the attached excel file was no longer corrupt upon opening from email.

Labels