unsupported_document
422 Unsupported document. Retry: Not as it is: change the request first. It can also end a job that has started, as the job’s error.code; failed jobs cost nothing.
When it happens
The file is of the right format but a kind of document the conversion doesn’t take, or doesn’t take yet: a layout it isn’t open to (PDF to Office and Extract tables check each file’s layout, such as a scan, a phone photo or a page in columns, before converting), a scan in a script we can’t read yet, or a file with nothing to convert, such as a scan with no text for PDF to Markdown. The job ends at no cost, and detail says which.
What to do
Send a file made from the original document rather than scanned, or try another conversion.
Example
{ "type": "https://formatjet.com/docs/errors/unsupported_document", "title": "Unsupported document", "status": 422, "code": "unsupported_document", "detail": "…", "request_id": "req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}Endpoints
- Convert a file
POST /v1/convert