0

Action 'Insert_HTML_to_PDF' failed : Please provide a valid PDF document

Hello,

i am trying to insert HTML to custom PDF document in power automate. Flow failed everytime on this error:

{"HttpStatusCode":400,"HttpStatusMessage":"Bad request","OperationId":"76edd32f-c31f-4ae2-b1ff-ed202d770ddd\\1","Errors":["Please provide a valid PDF document"],"OperationStatus":"Error"}

Output of Insert HTML to PDF:

{
    "statusCode": 400,
    "headers": {
        "Pragma": "no-cache",
        "Request-Context": "appId=cid-v1:c3d5326f-9a7f-4903-89a4-0aa00f12bdfc",
        "api-supported-versions": "1.0",
        "x-azure-ref": "20230906T102224Z-279y82zsx52cm3cgqmksprggg800000007v000000001fn9w",
        "X-Cache": "CONFIG_NOCACHE",
        "Timing-Allow-Origin": "*",
        "x-ms-apihub-cached-response": "true",
        "x-ms-apihub-obo": "false",
        "Cache-Control": "no-store, no-cache",
        "Date": "Wed, 06 Sep 2023 10:22:24 GMT",
        "X-Powered-By": "ASP.NET",
        "Content-Length": "269",
        "Content-Type": "application/json"
    },
    "body": {
        "HttpStatusCode": 400,
        "HttpStatusMessage": "Bad request",
        "OperationId": "d71f32c0-6c2f-48fc-b211-6db7798bd57a\\1",
        "Errors": [
            "Please provide a valid PDF document"
        ],
        "OperationStatus": "Error"
    }
}

I was trying different PDF files but result i same. 

Here is .PDF file:

 

Thanks for every hint/advice.

 

1 comment

  • 0
    Avatar
    Jakub Husařík

    The issue was with name of filename - i was forget to add .pdf extension to Encodian input. 

Please sign in to leave a comment.