web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Flow Ex...
Power Automate
Answered

Power Automate Flow Exception for Hindi Word File Conversion

(1) ShareShare
ReportReport
Posted on by 2

Hii,

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)

Input
 
{
    "host": {
        "connectionReferenceName": "shared_onedriveforbusiness",
        "operationId": "ConvertFileByPath"
    },
    "parameters": {
        "path": "/Kt/New folder/preview-consent.doc",
        "type": "PDF"
    }
}

Output
{
    "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"
    }
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,402 Most Valuable Professional on at
    Hey Mate,
     
    I see you are creating a "DOC" file in OneDrive and in SharePoint you have "DOCX" file....
     
    Please try to Create a file with the Extension "DOCX" and then try to Convert it to PDF using its ID....
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
     
    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard