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 II
Advocate II

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


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

Frequent Visitor

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

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (3,910)