Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Document AI, Custom Classifier - Internal Error when Training

I have created a custom classifier in document AI.

I have reduced the labels, training documents, and testing documents to the minimum allowed to get the classifier to train, but it always fails.

  • Labels = 2
  • Training Documents = 10
  • Testing Documents = 2

Training fails with the following error:

{
"name": "xxxx",
"done": true,
"result": "error",
"response": {},
"metadata": {
"@type": "type.googleapis.com/google.cloud.documentai.uiv1beta3.TrainProcessorVersionMetadata",
"commonMetadata": {
"state": "FAILED",
"createTime": "2024-09-27T16:04:48.662993Z",
"updateTime": "2024-09-27T16:16:25.687423Z",
"resource": "xxx"
},
"trainingDatasetValidation": {},
"testDatasetValidation": {}
},
"error": {
"code": 13,
"message": "Internal error encountered.",
"details": []
}
}

I do not know where to get any additional details, please advise.

 

0 2 203
2 REPLIES 2

AndrewB
Community Manager
Community Manager

A fix has been deployed for this issue. Let me know if you are still experiencing any problems. 

The training failure might be due to insufficient data or an internal issue. Ensure that your documents are diverse and well-labeled. For more details, check Google Cloud's logging and monitoring services like Cloud Logging for additional error specifics to help troubleshoot the internal error further.