- Introdução
- Examples Using the Document Understanding™ API
- Licenciamento
- Solução de problemas
- Solicita esquemas de resposta
- Document Understanding APIs error response codes
Document Understanding APIs error response codes
Depending on your use case, you can use two types of calls for Document UnderstandingTM APIs: synchronous (sync) and asynchronous (async).
Common issues concerning Document UnderstandingTM APIs are outlined in this page.
- Código de erro: código específico que identifica o tipo de erro.
- Mensagem de erro: explicação detalhada que descreve o que é o erro.
- Código de erro: código específico que identifica o tipo de erro.
- Mensagem de erro: explicação detalhada que descreve o que é o erro.
operationId
(retornado pela operação de início) for encontrado, a rota de resultados retornará persistentemente um status 202
(aplicável mesmo a solicitações não bem-sucedidas), e os detalhes do erro estarão no corpo da resposta.
Para obter detalhes e exemplos adicionais, consulte a documentação do Swagger.
- Se você usar as APIs síncronas de Classificação ou Extração, um erro
404, Code:[DocumentIdNotFound]
será exibido. - Se você usar as APIs assíncronas para Classificação ou Extração, o resultado retornará um erro
200, Code:[DocumentIdNotFound]
.
Em ambas as situações, a seguinte mensagem de erro é gerada:
Cannot perform the operation for the given documentId: Ensure it is correct, the
digitization is successful (retrieving the digitization result), and not more than 7 days
since the digitization call passed (case in which, it expired).
400
, que é exibido da seguinte forma: Code: [DigitizationErrorCode], Message: "DigitizationErrorMessage"
. O código de erro e a mensagem correspondente podem ter um dos seguintes valores:
[UnsupportedContentTypeError]", "Content type of the input document is not supported."
[UnexpectedPdfStructureError]", "Invalid or corrupt PDF structure."
[InvalidImageSizeError]", "Image size of the input document is not supported."
[UnableToProcessContentError]", "Unable to process document contents."
[ContentTypeMismatchError]", "Declared content-type of the input document does not match the binary content type."
[PasswordProtectedPdfError]", "Password protected PDFs are not supported."
[MaximumNumberOfPagesPerDocumentLimitExceededError]", "Maximum number of pages for digitization exceeded."
[InvalidRequestData]", "The form data in the request is invalid. Expected is a multi-part form data, with either one part consisting of the document to be digitized, or two named parts: File - the document, DigitizationResult - the digitization result, with content type application/json."
[UnexpectedDigitizationResultStructure]", "The digitization result object is invalid and non-serializable."
[InvalidDom]", "The provided DOM is invalid. Make sure the DOM is correctly built, including valid non-overlapping indices, well formed boxes and polygons and valid values for all properties."
[MismatchingDomAndContent]", "The provided DOM and content do not match. Make sure the DOM was generated on the provided document."
[MismatchingDomAndText]", "The provided DOM and text do not match. Make sure the text and DOM were generated on the same document."
[PreprocessingOptionIncompatibleWithDigitizationResult]", "Using the preprocessing option while also providing a digitization result input is not supported."
[InvalidOcrApiKeyError]", "OCR Api key is invalid."
[OcrTooManyRequestsError]", "OCR request quota exceeded."
[ExternalOcrTooManyRequestsError]", "OCR request quota exceeded."
[GoogleBillingNotEnabled]", "Google OCR billing is not enabled. Please enable billing in your Google Cloud Platform account."
[GoogleApiKeyExpired]", "Google OCR Api Key Expired."
[InvalidOcrUrlError]", "The provided OCR URL is invalid or malformed."
[InvalidResponseFromOcrEngineError]", "Invalid response received from the OCR engine. Please set another OCR engine for the project you are using."
[UnsupportedContentTypeError]", "Content type of the input document is not supported."
[UnexpectedPdfStructureError]", "Invalid or corrupt PDF structure."
[InvalidImageSizeError]", "Image size of the input document is not supported."
[UnableToProcessContentError]", "Unable to process document contents."
[ContentTypeMismatchError]", "Declared content-type of the input document does not match the binary content type."
[PasswordProtectedPdfError]", "Password protected PDFs are not supported."
[MaximumNumberOfPagesPerDocumentLimitExceededError]", "Maximum number of pages for digitization exceeded."
[InvalidRequestData]", "The form data in the request is invalid. Expected is a multi-part form data, with either one part consisting of the document to be digitized, or two named parts: File - the document, DigitizationResult - the digitization result, with content type application/json."
[UnexpectedDigitizationResultStructure]", "The digitization result object is invalid and non-serializable."
[InvalidDom]", "The provided DOM is invalid. Make sure the DOM is correctly built, including valid non-overlapping indices, well formed boxes and polygons and valid values for all properties."
[MismatchingDomAndContent]", "The provided DOM and content do not match. Make sure the DOM was generated on the provided document."
[MismatchingDomAndText]", "The provided DOM and text do not match. Make sure the text and DOM were generated on the same document."
[PreprocessingOptionIncompatibleWithDigitizationResult]", "Using the preprocessing option while also providing a digitization result input is not supported."
[InvalidOcrApiKeyError]", "OCR Api key is invalid."
[OcrTooManyRequestsError]", "OCR request quota exceeded."
[ExternalOcrTooManyRequestsError]", "OCR request quota exceeded."
[GoogleBillingNotEnabled]", "Google OCR billing is not enabled. Please enable billing in your Google Cloud Platform account."
[GoogleApiKeyExpired]", "Google OCR Api Key Expired."
[InvalidOcrUrlError]", "The provided OCR URL is invalid or malformed."
[InvalidResponseFromOcrEngineError]", "Invalid response received from the OCR engine. Please set another OCR engine for the project you are using."
500
, que é exibido da seguinte forma: Code: [DigitizationFailedServerError], Message: Internal Server Error
.
If you encounter this error, we recommend contacting the UiPath® Support team.
400
, que é exibido da seguinte maneira: Code: [SyncMaximumNumberOfPagesExceeded], Message: Maximum Number Of Pages Exceeded
.
Se você encontrar esse erro, o documento tem mais de cinco páginas e precisa ser dividido.
- Tratamento de erros para chamadas síncronas
- Tratamento de erros para chamadas assíncronas
- Trabalho de digitalização ou IdDoDocumento não encontrado
- Etapas de resolução
- Falha na digitalização devido ao erro do cliente
- Falha na digitalização devido ao erro do servidor
- Falha na digitalização devido ao número de páginas