We have extended our Early Bird Tickets for Inspire 2023! Discounted pricing goes until February 24th. Save your spot!

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

POST gallery/api/user/v2/inputfiles/ not accepting .PDF file

BK02
5 - Atom

I am uploading a pdf file through POST gallery/api/user/v2/inputfiles/ endpoint and getting the the below error:

{"data":null,"exceptionName":"BadRequestException","innerExceptionMessage":"","message":"Requested file format is not supported."}

 

While I am able to upload other file type like .xlsx, .csv and .txt

4 REPLIES 4
JosephSerpis
16 - Nebula
16 - Nebula

Hi @BK02 PDF files are not a standard Input typically unless you are using the Intelligence Suite tools. Are you trying to use a PDF file with a Input Data tool or a Dynamic Input?

BK02
5 - Atom

I consume gallery/api/user/v2/inputfiles/ API endpoint using .Net C# to upload the file.
Please let me know if it is possible to upload a pdf via gallery/api/user/v2/inputfiles/ API endpoint using .Net C#

JosephSerpis
16 - Nebula
16 - Nebula

Hi @BK02 the endpoint you are talking about uses a filebrowse Interface tool and a PDF file is not standed file it can accept. Alteryx is expecting data in a tabular format hence why the PDF is not accepted.

JayshriKolte
6 - Meteoroid

Hi BK02,

I am trying to consume gallery/api/user/v2/inputfiles/ API endpoint using .Net C# to upload the csv file as input to analytic App.

Can you please give me more reference for how to achieve it.