Skip to main content
Participant
January 10, 2024
Answered

Merge PDF Power Automate

Hello all,

 

I am encountering an issue when using MergePDF Power Automate step. So far, I have followed https://blog.developer.adobe.com/merging-documents-using-microsoft-power-automate-69a68e46081b. 

 

 

 

 Below is The results of testing my flow with the error "

CORRUPT_DOCUMENT: The input file appears to be corrupted and cannot be processed

"

 Here is also a snippet of the parameter input. I see that the files are sent as Base64 encoded. I decoded these and am able to view the PDFs which tell me they are valid documents. 

 

parameters":{"Files Array/outputFileName":"merged.pdf","Files Array/files":["[{\"$content-type\":\"application/octet-stream\",\"$content\":\"JVBERi0xLjcNJeLjz9MNCjc1IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCAxOTUvTGVuZ3RoIDQxOC9OIDI3L1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjenFXbahsxEP2V8wcrjWZ0gZCHkvYlNATHb6EPbipCwekGY0P995nVbBJDssXqgziLdM7MaC5aCnCghJxAGcSE4EHFI+gXM0JAKLoYPJ0JOBeECNEVEiTrWUYMTmmIKYMdEkWwR0oqImQicFAHTk2g+AQWlBTAEd6pfU6K6oMzvFcKF8With08RYZ4+OAFQopxcg3PakZYMQouLobre72Cw+rHcLvZ1T/79a5WkExbJzs39e/+uh7hh9W4rd83z3rfRlkfn+twt98dHhpvNY77y0szmyfClJMGZBAM2EAMokEymHWlgeakgVlhs8JmRWbgOX5Q2xjuhqvx4fCkoZ+G93Vbn+bQNDuNnuyWj3jV3S4IKH7O//b78bCrSyKEPi9arz5B7KOnPnruo5c+uned/M6SeerkdxbLc2dx37s0zdT15ud2qXlYXunW7Kcu1l/GX8clnc0Slzc5f5CvlrQ2gJzftPJB....

 

    Raymond Camden
    Raymond CamdenCorrect answer
    Community Manager
    January 10, 2024

    It looks like you passed an array in Files Content -1, but it expects one file. 

    3 replies

    Cláudio38665535qhls
    Participant
    May 18, 2026

    Enter this edit mode and remove the square brackets, leaving only the variable.

    Translate
    Raymond Camden
    Community Manager
    Raymond CamdenCommunity ManagerCorrect answer
    Community Manager
    January 10, 2024

    It looks like you passed an array in Files Content -1, but it expects one file. 

    Translate
    Participant
    January 10, 2024

    Thank you Raymond. When building this I was using the "New Designer" and missed the "Switch to input entire array" step

    Translate