Showing results for 
Search instead for 
Did you mean: 

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:




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

Frequent Visitor

Hi Kris,

I dont understand your answer.

this function was working great up until a week ago.

I've been using it for at least 2 month with no issue.

how come now I have to purchase a 3rd party tool beacuase Microsoft changed the function?

highly unaccaptable !

Please reply with a valid solution 

here is a screen shot of a working flow and then, out of the blue, start to fail!


Also my client tenant uses DLP policies. For example I cannot access 3rd party application tabs to MS Teams and when I try and use Plumsail or Mohimbi PDF I get this type of meessage:


InvalidTemplate. Unable to process template language expressions in action 'Convert_HTML_to_PDF' inputs at line '1' and column '2336': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_muhimbi']['connectionId']' cannot be evaluated because property 'shared_muhimbi' doesn't exist, available properties are 'shared_sharepointonline, shared_onedriveforbusiness'. Please see for usage details.'.


I know this used to work - MVP John Liu first covered in a popular blog post.


So I do not think its true this is not supported.





Not applicable

Load of rubbish having to use a third party connector for functionlaity that was already present, just broken.


In the failure summary if you click on the support page link you can see that MS has acknowldege the issue and are working towards a fix.





It would be useful to get an update as to when it may be resolved. And also which file types are allowed.

So docx works, but html does not. What else currently works ?

Not sure if this helps anyone, but if you really need this functionality, you can use the approaches I outline here...




Paul Culmsee



Advocate III
Advocate III

Can we get an update on when this will be fixed?


It doesn't even work converting .txt or .csv files.

Not applicable

the problem still not fixed,i am obliged to use some paid actions like plumsail!

Advocate III
Advocate III

I am still getting the 406 NotAcceptable error when trying to convert .csv files.

I opened a ticket with Microsoft, will update here with their response.


Does the action succeed when converting html to pdf? Might have to explore that option.

Anyone heard anything yet? I cannot convert .jpg to .pdf.  I swear it was working a few weeks ago.

i had the same issue... in name of the new file created not only you should put the "name" also the format. in my case need to add ".html" to in consequence the next block of flow recognize the format and converts to pdf. then you need to create another file with te content of the previous block and the name of it must ends with, in my case ".pdf"... There was the error for me and works fine now...

I'm still getting the 406 error and my file ends with .html. Has anyone else had sucess?

Helpful resources

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Users online (3,352)