Hi!
I've been trying to create a flow which takes responses form a form, uses them to populate a template, creates a new document from that template and emails the document to the person who submitted the form.
My flow works except that when I try and open the attachment from outlook I get the following error messages:


When I try to open the document from Windows Explorer there are no issues with it.
Here as a screenshot of my flow:

Any idea where I might be going wrong?