Hi all,
i'm new user with Power Automate, in the last weeks i created some easy flow and i really appreciate the powerfull of the tool.
Now, i'm banging my head since 12 hours on a flow that produce PDF files from an excel database and Word Template (as mail merge) and send an email with the document produced in PDF.
The document PDF that i write on OneDrive is ok. The attachment is corrupted.
I read all the topics about this problem and i change many times the configuration but i can't still solve my issue.
Please, help me to undestand what i'm wronging.
i attach some pictures of my flow. In the third one, the point the critical configuration.
Thank you very much for you help
Hi everyone, whenever I'm trying to open my word file (attachment), I'm getting this alert that the file is unreadable and when I click Yes, I get the error shown in second picture, I tried every suggestion shown in the picture and I also tried to use old version of Power automate as well as the latest one, but still I'm facing the same issue. Could you please suggest some ways to resolve this?
I get a wierd file type ~pdf attachment and base64 not decoded correctly to view binary in Outlook the attachment. I think it needs a base64toBinary decoding. Any suggestions? Outlook needs a special conversion since attachment in Outlook are binary.
Thank you so much. I also lost 12 hours on it....
@jameslu - THANK YOU!! I wasted 2 nights on this problem and was starting to pull my hair out over it.
I'm reposting the solution that worked for me in hopes more people see this. If you want to continue using the new designer:
1. Switch to details inputs
2. Remove the quotes around the FileContent
3. Save and Test
Thank you so much!!
Using the New Designer and removing the double quote on the File Content works like a charm for me! It resolved my issue for the past 2 days!
Just switched to the old version of the UI and now my pdf is generated OK (before that the pdf was displayed as a blank document although there was info inside, but not renderable), I'm amazed how come this insn't already fixed by MS. Wake up guys it's been 5 months since the posted solution !!!
You can actually keep the quotations. Just add .pdf after the expression for the file name.
Check out my solution here.
Hi all, I tried switching to classic and didn't work. It still is corrupt. I don't see Content Bytes either. What am I missing and/doing wrong to not see content bytes?
All the best,
Lori
Here is what it looks like.
Thanks for the response. Unfortunately, it did not work. I am using the classic editor. When i delete the quotations it just replaces them. The file attached is still not a PDF and can not be previewed.
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional