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": "xxxxxxxxxxxxx",
  "done": true,
  "result": "error",
  "response": {},
  "metadata": {
    "@type": "type.googleapis.com/google.cloud.documentai.uiv1beta3.TrainProcessorVersionMetadata",
    "commonMetadata": {
      "state": "FAILED",
      "createTime": "2024-11-08T15:23:31.941368Z",
      "updateTime": "2024-11-08T15:33:52.389110Z",
      "resource": "xxxxxxxxxxxxxxxxx"
    },
    "trainingDatasetValidation": {},
    "testDatasetValidation": {}
  },
  "error": {
    "code": 13,
    "message": "Internal error encountered.",
    "details": []
  }
}

 

 

 

and in Google Cloud Console Logs Explorer:

 

 

{
  "protoPayload": {
    "@type": "type.googleapis.com/google.cloud.audit.AuditLog",
    "status": {
      "code": 3,
      "message": "The replica workerpool0-0 exited with a non-zero status of 1. Termination reason: Error. To find out more about why your job exited please check the logs: https://console.cloud.google.com/logs/viewer?project=xxxxxxx&resource=ml_job%2Fjob_id%2Fxxxxxxxxxx&advancedFilter=resource.type%3D%22ml_job%22%0Aresource.labels.job_id%3D%xxxxxxxxx%22"
    },
    "authenticationInfo": {
      "principalEmail": "xxxx@xxxx.com"
    },
    "requestMetadata": {
      "requestAttributes": {},
      "destinationAttributes": {}
    },
    "serviceName": "documentai.googleapis.com",
    "methodName": "google.cloud.documentai.uiv1beta3.DocumentProcessorService.TrainProcessorVersion",
    "resourceName": "xxxxxxxxxxxxx"
  },
  "insertId": "1y8j6lyc8cm",
  "resource": {
    "type": "audited_resource",
    "labels": {
      "method": "google.cloud.documentai.uiv1beta3.DocumentProcessorService.TrainProcessorVersion",
      "project_id": "xxxxxxxxxxx",
      "service": "documentai.googleapis.com"
    }
  },
  "timestamp": "2024-11-08T15:11:02.914116110Z",
  "severity": "ERROR",
  "logName": "projects/xxxxxxxxxxx/logs/cloudaudit.googleapis.com%2Factivity",
  "operation": {
    "id": "projects/xxxxxxxxx/locations/xx/operations/xxxxxxxxxxxx",
    "producer": "documentai.googleapis.com",
    "last": true
  },
  "receiveTimestamp": "2024-11-08T15:11:03.812489435Z"
}

 

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

 

0 3 256
3 REPLIES 3