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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Merge PDF action is th...
Power Automate
Unanswered

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
    Re: Merge PDF action is throwing error of input file corrupted for MIME type application/pdf while trying to merge pdfs from power automate

    soumyadeep2201_0-1672948196464.png

    This is what I am getting in array variable

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Merge PDF action is throwing error of input file corrupted for MIME type application/pdf while trying to merge pdfs from power automate

    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
    Re: Merge PDF action is throwing error of input file corrupted for MIME type application/pdf while trying to merge pdfs from power automate

    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
    Re: Merge PDF action is throwing error of input file corrupted for MIME type application/pdf while trying to merge pdfs from power automate

    Also tried by clicking on that icon but no luck

    soumyadeep2201_1-1672989872085.png

     

  • v-xiaochen-msft Profile Picture
    on at
    Re: Merge PDF action is throwing error of input file corrupted for MIME type application/pdf while trying to merge pdfs from power automate

    Hi @soumyadeep2201 ,

     

    Please try to click this icon.

    vxiaochenmsft_0-1672989906541.png

     

    Best Regards,

    Wearsky

  • soumyadeep2201 Profile Picture
    28 on at
    Re: Merge PDF action is throwing error of input file corrupted for MIME type application/pdf while trying to merge pdfs from power automate

    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
    on at
    Re: Merge PDF action is throwing error of input file corrupted for MIME type application/pdf while trying to merge pdfs from power automate

    Hi @soumyadeep2201 ,

     

    Please remove the '[]'

    vxiaochenmsft_0-1672990049289.png

     

    Best Regards,

    Wearsky

  • soumyadeep2201 Profile Picture
    28 on at
    Re: Merge PDF action is throwing error of input file corrupted for MIME type application/pdf while trying to merge pdfs from power automate

    Hi @v-xiaochen-msft ,

    After removing the extra spaces it worked. Thanks

  • miahkl91 Profile Picture
    5 on at
    Re: Merge PDF action is throwing error of input file corrupted for MIME type application/pdf while trying to merge pdfs from power automate

    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

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard