• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Failure to use "Merge PDFs" in Power Automate

Community Beginner ,
Apr 11, 2022 Apr 11, 2022

Copy link to clipboard

Copied

Dear Expertise/ Specialist,

 

I have encountered the flow error with message “For application/pdf mime-type The input file appears to be corrupted and cannot be processed.” On the Flow of “Adobe Merge PDFs”.   

 

It would be great if Adobe could have a User Guide to let users know how to put the parameters correctly esp. in some scenarios such as get attachments from multiple SharePoint Items in the List/ Table....

 

I have 2 Tables/ Lists and the flows below:

  1. From ‘Table 1’, I use Do-Loop to extract the Attachment from multiple records I needed. 
  2. After that, I use “Adobe Convert Doc to PDF” function to convert the (1) Attachment from multiple records to SAVE it ALL to a single raw record in ‘Table 2’. And the Loop function ended.
  3. Then,
    1. I get the Raw Record from ‘Table 2’
    2. Get Attachment
    3. Get Attachment Content
  4. Based on (3) result, I append it to the array Variable “varPDF”
  5. I called the “Adobe Merge PDFs” function and attach the “varPDF” to it for merging, then I could save it back to my Database.

 

Li23979650t7px_0-1649742607943.png

Li23979650t7px_1-1649742637625.png

Li23979650t7px_2-1649742658038.png

 

Thank you so much.

 

 

 

TOPICS
Document Generation API , General , How to , PDF Services API , Power Automate

Views

309

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 12, 2022 Apr 12, 2022

Copy link to clipboard

Copied

First thing I would try is set your "Merged PDF File Name" to have a .pdf extension at the end. 

The second thing is if one of the files that you are merging isn't a PDF already, you might need to convert that first to PDF and then merge it.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 12, 2022 Apr 12, 2022

Copy link to clipboard

Copied

Dear Mr Vanderberg,

 

Thank you so much for your reply and effort on my issue.  I will be very appreciate it if you would give me some valuable advice on my scenario. 

Assuming that all environment conditions are met (all are .pdf files, and not null.....), the error is still arise, I have modified some flows such as compose the 'Attachment Content' as base64 format..., but it does not help.  

I would very appreciate it if you could give me some professional advice.

Li23979650t7px_0-1649774568151.png

Best

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 13, 2022 Apr 13, 2022

Copy link to clipboard

Copied

I would very appreciate it if any could give me some advice.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 19, 2022 Jul 19, 2022

Copy link to clipboard

Copied

Looking at your last screenshot, you probably need to click on the little [T] icon on the right of File Content to turn it into raw mode.

 

Then insert the following:

[
  [varPDF]
]

Replacing [varPDF] with your varPDF variable, but make sure you have the brackets on the outside because you are essentially attaching your content to an array. 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 20, 2022 Jul 20, 2022

Copy link to clipboard

Copied

LATEST

Hi @Li23979650t7px ,

 

I was exploring your scenario and here is the flow that I created for your similar scenario. A couple additions I made were:

  • Added a condition to check if it had attachments
  • Cleared the variable with each cycle
  • Used the raw input to add the array into the Merge PDF view.

Hope this helps.

BenVanderberg_0-1658345492011.png

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources