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 / Merge PDF action is th...
Power Automate
Answered

Merge PDF action is throwing error of input file corrupted for MIME type application/pdf while trying to merge pdfs from power automate

(0) ShareShare
ReportReport
Posted on by 28

Hi Team,

I am facing the same issue where MergedPDF action is throwing the input file error for application/pdf MIME type. I am passing the pdf file name from PowerApps to Power Automate then getting the file content from SharePoint connector and appending to array variable

 

soumyadeep2201_0-1672947589135.png

 

soumyadeep2201_1-1672947648767.png

 

but getting error

soumyadeep2201_2-1672947687720.png

 anyone faced the same issue. Any leads will be appreciated.

 

Regards,

Soumyadeep

Categories:
I have the same question (0)
  • soumyadeep2201 Profile Picture
    28 on at

    soumyadeep2201_0-1672948196464.png

    This is what I am getting in array variable

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @soumyadeep2201 ,

     

    Please click this icon and use the variable.

    vxiaochenmsft_0-1672988653005.png

     

    Best Regards,

    Wearsky

  • Verified answer
    soumyadeep2201 Profile Picture
    28 on at

    Hi @v-xiaochen-msft 

     

    Thanks for your reply, I indeed tried that but no luck

    soumyadeep2201_0-1672989735982.png

    In PDF file name tried with .pdf and without extension but no luck

     

    Regards,

    Soumyadeep

  • soumyadeep2201 Profile Picture
    28 on at

    Also tried by clicking on that icon but no luck

    soumyadeep2201_1-1672989872085.png

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @soumyadeep2201 ,

     

    Please try to click this icon.

    vxiaochenmsft_0-1672989906541.png

     

    Best Regards,

    Wearsky

  • soumyadeep2201 Profile Picture
    28 on at

    Hi @v-xiaochen-msft 

    If I remove the array after clickin that icon its giving error while saving -"Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'Files Array' validation failed in workflow operation 'Merge_PDFs': The parameter with value '"@{variables('MergedContentArray')}\n "' in path 'Files Array/files' with type/format 'String' is not convertible to type/format 'Array'.'"

     

    Regards,

    Soumyadeep

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @soumyadeep2201 ,

     

    Please remove the '[]'

    vxiaochenmsft_0-1672990049289.png

     

    Best Regards,

    Wearsky

  • soumyadeep2201 Profile Picture
    28 on at

    Hi @v-xiaochen-msft ,

    After removing the extra spaces it worked. Thanks

  • miahkl91 Profile Picture
    5 on at

    This helped me a lot with my prob. Thank you!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard