cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
paul_culmsee
Level 8

Error 406 NotAcceptable on Convert File Action

I am building a HTML file in Flow, saving it to OneDrive, and then converting it to PDF. There is something in some of the files I geneerate that is making the Convert File action fail.

 

I get:

 

{
  "status"406,
  "message""htm",
  "source""api.connectorp.svc.ms"
}

 

This is a super-simple action, I can't see anything untoward in the HTML file as it renders fine I've run it through validation checks

20 REPLIES 20
paul_culmsee
Level 8

Re: Error 406 NotAcceptable on Convert File Action

Update... even if I enter something like <h1>hi there</h1> I still get the error. Is there a fault with this action?

mgie
Level: Powered On

Re: Error 406 NotAcceptable on Convert File Action

same issue here 

was working well up untill 4 days ago.

since then all errors 

any idea ?

Sabey
Level: Powered On

Re: Error 406 NotAcceptable on Convert File Action

Same problem here, does not support convert EML, MSG to PDF anymore... this is bad news.  Only convert standard document type like .docx, .xlsx... 

 

I just open a case to microsoft, will see.

DuffmanA
Level: Powered On

Re: Error 406 NotAcceptable on Convert File Action

I'm also facing the same issue.

 

Unable to convert from html to pdf. It appears that it is OK if I use a docx .

 

Any help would be much appreciated.

 

 

Sabey
Level: Powered On

Re: Error 406 NotAcceptable on Convert File Action

I opened a case to microsoft, they told me they have a problem with a backend media service.  This is the last update I got this morning.  I will keep you posted as soon I got news.

Highlighted
DuffmanA
Level: Powered On

Re: Error 406 NotAcceptable on Convert File Action

Any updates ?

 

Is there a service status page or th elike that we can visit to see the issue and resolution ?

 

Thanks

 

 

mgie
Level: Powered On

Re: Error 406 NotAcceptable on Convert File Action

Hi,

I also opned a ticket to Microsoft, last update was (on Thursday) that they detect some issue in there system and will update us when fixed.

No update on our side yet , still getting the same error 

paul_culmsee
Level 8

Re: Error 406 NotAcceptable on Convert File Action

I'll see what I can find out on Monday. I am hoping it is resolved this week also as it is an extremely popular peice of functionality

Community Support Team
Community Support Team

Re: Error 406 NotAcceptable on Convert File Action

Hi @paul_culmsee,

 

Could you please share a screenshot of your flow's configuration?

 

The error message told that you could not convert a html file into a PDF file. I have made a test on my side and the issue is confirmed on my side. Converting a HTML file into a PDF file is not supported in "Convert file" action of OneDrive connector. If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

If you want to convert a HTML file into a PDF file, please take a try with the following workaround:

  • Add a proper trigger, here I use Flow Button trigger.
  • Add a Conpose action, Inputs field set to following formula:
<html>
          <table>
                     <tr>
                             <td>Name</td>
                             <td>Kris Dai</td>
                    </tr>
                    <tr>
                          <td>Email Address</td>
                          <td>Test1@xxxxxx.onxxxxxxxxx.com</td>
                    </tr>
          </table>
</html>
  • Add a "Create file" action, specify Folder Path, File Name field set to Profile.html, File Content field set to output of "Compose" action.
  • Add a "Get file content" action, File field set to Id dynamic content of "Create file" action.
  • Add a "Convert document" action of Muhimbi PDF connector, Source file name field set to DisplayName dynamic content of "Create file" action, Source file content field set to File content dynamic content of "Get file content" action, Output format field set to PDF.
  • Add a "Create file 2" action, specify Folder Path, File Name set to Profile.pdf, File Content field set to Processed file content dynamic content of "Convert document" action.

Image reference:14.JPG

 

15.JPG

The flow works successfully as below:16.JPG

The created HTML file within OneDrive opens well as below:17.JPG

The converted PDF file within OneDrive opens well as below:18.JPG

 

 

More details about Muhimbi PDF connector, please check the following article:

Muhimbi PDF Connector

 

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,643)