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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to save files t...
Power Automate
Unanswered

Unable to save files to on-prem library using flow

(0) ShareShare
ReportReport
Posted on by 25

Hi Team,

 

I am facing a issue while saving my pdf files to the sharepoint 2013 library.

I am using send an http request action which executes successfully, creates the pdf file in library but looks like it is only creating file with no content.

File is library:

Vkas_3-1601436913382.png

 

Flow run:

Vkas_0-1601436658680.png

Vkas_9-1601438022457.png

 

 

Below is what I am getting when trying to open the file from library:

Vkas_2-1601436865547.png

 

Actual Flow:

Vkas_4-1601437078333.png

 

If I use Create file instead of send http request action, I get error as "Resource not found". This also creates a pdf file but the file is completely not opening (not even giving signature error as with send http request action above)

Vkas_5-1601437182264.png

Vkas_6-1601437252065.png

 

The third option I tridd is to save the pdf file from email attachment to sharepoint library.

That also runs successfully  and create the pdf file but with no content.

 

From all above options, I tried creating a simple txt file with small content in it, and it created and opening without any issues. The issue seems to be only with pdf file.

Looks like the pdf file is not save with correct format or content.

 

I tried to use file content as base64ToBinary, but it fails with below error:

Vkas_7-1601437706331.png

Vkas_8-1601437794670.png

base64ToBinary(outputs('Get_file_content_2')?['body'])

 

Any idea what I am missing in my actions?

 

Thanks,Vkas

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @Vkas 

    So what is the trigger of your flow , from what source are you trying to create your PDF?

     

  • Vkas Profile Picture
    25 on at

    Hi @Mira_Ghaly 

     

    For trigger, i tried few options:

    1. new email with pdf attachment

    2. when a pdf file created in onedrive for business

    3. when a file is created in Sharepoint (on-prem or online)

     

    from any of the above options, my target is to save pdf file to my on-prem library and I can easily save it to online sites but not on on-prem site.

    the pdf file can be from mail, from another site or from onedrive, or from any other source.

    The target is to save a pdf (from any source) to sharepoint onprem site.

     

    Let me know if you need any more information.

     

    Thanks.

  • Vkas Profile Picture
    25 on at

    I tried creating a normal pdf file after uploading it to different library thinking of that it could be a signature issue.

    The file created successfully with same number of pages but with no content in it.

    The actual file size was 650 KB and this file created is around 1.2 MB.

    the file is opening without any issues and errors, has same number of pages but no content in it.

     

    Any idea?

     

    Thanks 

  • zweld Profile Picture
    2 on at

    Did you ever resolve this? I have the same issue.

  • rameshmukka Profile Picture
    1,115 on at

    @Vkas @Mira_Ghaly @zweld 

    Were you able to solve this? I too have the same issue. I have created a PDF from SharePoint online list using power automate flow and trying to save it to SharePoint 2013 on-prem library. At Create File action (SharePoint 2013) it is failing with "Resource Not Found" error while the same pdf is creating fine in SharePoint Online and OneDrive for Business. Please help.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard