How can I fix error with the code 400000 and message The Document field is required. in azure document translator

Abdrahman Oladimeji 5 Reputation points
2024-07-06T06:18:24.8333333+00:00

I am getting this error when I tried using Microsoft azure document translation:

{
    "error": {
        "code": 400000,
        "message": "The Document field is required."
    }
}

Attach is a screenshot of my request body:
User's image

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
393 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 17,121 Reputation points
    2024-07-08T03:04:36.6133333+00:00

    Hello @Abdrahman Oladimeji , Thanks for using Microsoft Q&A Platform.

    Generally, Synchronous single file supports the processing of single file translations. The file translation process doesn't require an Azure Blob storage account.

    Looks like you are working with synchronous single file, so I would suggest you check the supported document formats.

    Unfortunately, pdf file type is not supported: https://video2.skills-academy.com/en-us/azure/ai-services/translator/document-translation/overview#synchronous-supported-document-formats

    I hope this helps.

    Regards,

    Vasavi

    -Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.