Graph API convert from CSV to PDF reporting "InputFormatNotSupported"

Mark L. Fowler 21 Reputation points

Hi gang,

Using the Microsoft Graph API, we are attempting to upload a CSV file to SharePoint Online. Then, once uploaded, we're trying to convert the CSV file to PDF following this page:

We are successfully achieving the following steps so far:

  1. Getting access tokens at this endpoint:
  2. Creating an upload session at this endpoint:
  3. Uploading a file through our upload session at this dynamic endpoint:'0fe01aee-6686-4405-b8d1-2101b1c91cae'&overwrite=True&rename=False&dc=0&tempauth=TEMP_AUTH_TOKEN

Where we are running in to issues is when we're calling the Graph API endpoint to convert that uploaded file to PDF.

  1. We're doing that by calling this endpoint:

When we call that endpoint, though, we get a 406 Not Acceptable error with the following body:

    "error": {  
        "code": "notSupported",  
        "message": "csv",  
        "innererror": {  
            "code": "InputFormatNotSupported"  

Is conversion from CSV to PDF supported at this time? Has anyone run in to this issue before?


A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,458 questions
Microsoft Graph SDK
Microsoft Graph SDK
A Microsoft software developer kit designed to simplify building high-quality, efficient, and resilient applications that access Microsoft Graph.
811 questions
No comments
{count} votes

Accepted answer
  1. Jerryzy 10,411 Reputation points

    Hi @Mark L. Fowler ,

    I can reproduce when test in my side:


    Seems this result is not consistent with the official document.

    But now the error message specify the InputFormatNotSupported, so I think at least currently, the csv format can't convert to pdf, you can try another excel file format .xlsx which should be working if possible.

    Best Regards

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Oldest