Graph Api Fails to convert docx to pdf if file is in minor version

pierluigi l 1 Reputation point
2022-10-17T08:01:12.427+00:00

Hi,
I have a problem, if the file is in minor version the conversion to pdf does not work....

this is the error i get:

Status Code: BadRequest
Microsoft.Graph.ServiceException: Code: generalException
Message: Error from Office Service. Url=https://wordcs.officeapps.live.com/document/export/pdf HttpCode=BadRequest cert=subject:;thumbprint: ResponseHeaders=X-ErrorCode: WordFileDownloadFailed
X-ClientCorrelationId: 82e95354-8269-4451-8eae-23909fbb1991
X-ServiceCorrelationId: 82e95354-8269-4451-8eae-23909fbb1991
X-ErrorCategory: BadRequest
X-IsRetriable: False
Cache-Control: private
Date: Thu, 13 Oct 2022 06:35:06 GMT
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET

Inner error:
Code: OfficeConversion_RemoteDownload

below are my library settings:

250925-image.png

250948-image.png

missing some settings ??

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,824 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shivam Dhiman 5,946 Reputation points
    2022-10-19T21:24:57.62+00:00

    Hi @pierluigi l

    I tried to replicate this scenario, but it is working as expected. I would recommend you to raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better. You can raise support ticket from
    http://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests .

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments