cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

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

23 REPLIES 23
Highlighted

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?

Highlighted
Frequent Visitor

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 ?

Highlighted
Regular Visitor

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.

Highlighted
Anonymous
Not applicable

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.

 

 

Highlighted
Regular Visitor

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
Anonymous
Not applicable

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

 

 

Highlighted
Frequent Visitor

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 

Highlighted

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

Highlighted
Community Support
Community Support

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
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Users online (5,486)