I have created a Power Automate flow for converting Word files to PDF using the OneDrive file converter. I have two Word files available on SharePoint: one in Hindi and another in English. My flow is working fine for the English language file, but it is giving an exception for the Hindi language file.
Conversion of this file to PDF is not supported. (invalidFileFormat / Error from Office Service. Url=https://euc.wordcs.officeapps.live.com/document/export/pdf HttpCode=UnsupportedMediaType)
{
"statusCode": 406,
"headers": {
"Cache-Control": "no-cache",
"Pragma": "no-cache",
"Transfer-Encoding": "chunked",
"x-ms-request-id": "81bf1b5d-face-403c-80c1-3906cd8507eb",
"X-AspNet-Version": "4.0.30319",
"X-Powered-By": "ASP.NET",
"x-ms-client-region": "europe",
"x-ms-flavor": "Production",
"x-ms-workflow-name": "231edf9f-c498-4bf0-85ee-342c86f7e972",
"X-Ms-Workflow-Resourcegroup-Name": "E4E1ABD9EAC74A71AB52DA5C998AA7BA-0950D87C58194B04A3D7658E141033C7",
"x-ms-workflow-run-id": "08584733184762465108954605953CU23",
"x-ms-workflow-subscription-id": "427976e2-4271-4308-afb8-d28d53a6ad06",
"x-ms-workflow-version": "08584735361203751406",
"x-ms-tenant-id": "e4e1abd9-eac7-4a71-ab52-da5c998aa7ba",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "false",
"Date": "Mon, 07 Oct 2024 08:06:51 GMT",
"Content-Type": "application/json",
"Content-Length": "267",
"Expires": "-1"
},
"body": {
"status": 406,
"message": "Conversion of this file to PDF is not supported. (invalidFileFormat / Error from Office Service. Url=https://euc.wordcs.officeapps.live.com/document/export/pdf HttpCode=UnsupportedMediaType)",
"source": "api.connectorp.svc.ms"
}