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

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
mgie
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!

flowmail.jpg

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 https://aka.ms/logicexpressions for usage details.'.

 

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

 

http://johnliu.net/blog/2017/10/generate-any-pdf-documents-from-html-with-flow

 

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

 

regards

 

Paul

Anonymous
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.

 

Capture123.PNG

 

 

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...

 

http://www.cleverworkarounds.com/2018/03/09/three-ways-to-convert-html-to-pdf-using-microsoft-flow/

 

regards

 

Paul Culmsee

 

 

LozzieD
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.

Afifkr
Frequent Visitor

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

cjhealy
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

Announcements
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

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (91,077)