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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error in converting HT...
Power Automate
Unanswered

Error in converting HTML file into PDF file Error 412

(1) ShareShare
ReportReport
Posted on by

I am building a flow referring to one of the community solutions to merge Images and then save them in an HTML file and then convert them into a PDF file. 

Need help with Arrays into PDF - images with text 

Abhishek_B_0-1718617823983.png

 

However, I'm encountering an error "An exception occurred while executing within the Sandbox for action Convert file using path."

 

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @Abhishek_B ,

     

    Are there multiple imaged included in the HTML file? The error may be due to the 2MB limitation. Please refer to below thread:

    Convert html to PDF: An exception occurred while e... - Power Platform Community (microsoft.com)

     

    Best regards,

  • Abhishek_B Profile Picture
    on at
    Yes this flow has the pdf size limit of 2MB while converting. So we have converted each report into pdf and wherever size was exceeding we have compressed it. Then after we have merged it via premium connector and then created a file.
     
    Another approach was using RPA (PAD) using Merge pdf action.
     
    Thank you @v-jefferni for the reference.
  • MF-12110132-0 Profile Picture
    2 on at

    Hello,

     

    I’m experiencing a recurring issue with the “Convert file” (OneDrive for Business) action in Power Automate. The flow runs correctly up to this step, but when it attempts to convert an HTML file to PDF, it consistently fails with the following error:

     
     
     
    The request has SAS authentication scheme, 'MSAuth1.0' authorization scheme or internal token scheme. Only one scheme should be used.
    {
    "status":
    412,
    "message": "An exception occurred while executing within the Sandbox",
    "source": "api.connectorp.svc.ms"
    }
     

    The HTML file is dynamically created in OneDrive from a variable (htmlBody), and its Identifier is then used in the File field of the “Convert file” action. I have already tried adding multiple delays (up to several minutes) and testing different input options (Id, Path, and File Content), but the error persists. I’m not using any Premium connectors or third-party services.

     

    I would like to confirm whether this issue is caused by a known limitation or a bug in the “Convert file” connector when handling newly created HTML files in OneDrive (HTML → PDF) under enterprise authentication, and whether there is any supported alternative to perform this conversion within the standard (non-Premium) environment.

     

    I appreciate your assistance and any guidance on the root cause or recommended solutions.

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard