web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / doc and htm documents ...
Power Automate
Unanswered

doc and htm documents uploaded via power automate to sharepoint cannot be opened

(0) ShareShare
ReportReport
Posted on by 12
  • Flow description: In power automate, recognize an email with the subject line "CCG Daily News: Electronics Manufacturing Daily News" and rename the attached document to the current day format " YYYYMMDD" and then upload it to the specified SharePoint path in both doc&htm file types, any attachments in the body of the email will not be uploaded to sharepoint. 

Problem encountered: doc and htm documents uploaded to sharepoint cannot be opened.Joe9_0-1712565939243.pngJoe9_1-1712565965038.pngJoe9_2-1712565987434.png

 

  • Here is my cloud flow:Joe9_3-1712566040931.png

     

Categories:
  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Joe9 

     

    Can you expand the Yes Branch so we can see the dynamic content.

     

    Andrew

  • Joe9 Profile Picture
    12 on at

    FYI

    Joe9_1-1712738985298.pngJoe9_2-1712738996274.png

     

  • Joe9 Profile Picture
    12 on at

    @Andrew_J 

    Any suggestions on this case?

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Joe9 

     

    Sorry been busy, my intial view is that you do not have a file extension in hte create file step.  And you need a create file step for the docx and htm.  Maybe try those and get back to me.

     

    Andrew

  • Joe9 Profile Picture
    12 on at

    same as before, even I input the document type in the file name Joe9_0-1713173946843.png

     

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Joe9 

     

    I need you to check the following:

     

    Andrew_J_0-1713180954973.png

    It looks correct from other images I have seen, maybe dele the dynamic content and add it back in.

     

    Other than the above I cannot see much wrong with the flow but have a look at the raw outputs, is it doing what you need it to do.  Are the files created the size you are expecting.

     

    Andrew 

  • Joe9 Profile Picture
    12 on at

    here is the dynamic content  I used

    Joe9_0-1713316014193.png

     

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Joe9 

     

    That seems correct to me,  so are the files that you create with the flow now able to open or is this still an issue. 

     

    I also thinking there may be an issue with the GET ATTACHMENTS, this will get all of them and then arbiturlly rename them with DOCX or HTML extensions.  This may be the issue why you cannot open them when you go to the SharePoint site. 

     

    I cannot help with what I think needs to be done by identiftying the file types, HTML or DOCX then processing the different types correctly.  I think that is for a different post.  Although thinking about it there is dynamic content that has a filename with extension.

     

    Andrew_J_0-1713348088456.png

     

    Regards,

     

    Andrew

  • Joe9 Profile Picture
    12 on at

    Thanks Andrew, is that any other people can help me to solve this issue?

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Joe9 

     

    Can you open the files that the flow creates.  I think that is the whole issue of your post but you have not given me that information. 

     

    Andrew

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard