Hello Google Support,
I am facing an issue with undeploying a processor version in Google Cloud Document AI.
After initiating the undeployment from the Google Cloud Console, the processor version status has been stuck in “Undeploying” for several days without completing the process.
When attempting to undeploy using Cloud Shell, I encountered the following error:
Command Executed:
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d "" \
"https://LOCATION-documentai.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/processors/PROCESSOR_ID/processorVersions/PROCESSOR_VERSION:undeploy"
Error Message:
{
"error": {
"code": 400,
"message": "ProcessorVersion state cannot be changed to 'UNDEPLOYING' since it is 'UNDEPLOYING'.",
"status": "FAILED_PRECONDITION",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "PROCESSOR_VERSION_STATE_CHANGE_INVALID",
"domain": "documentai.googleapis.com",
"metadata": {
"version_id": "PROCESSOR_VERSION",
"current_state": "UNDEPLOYING",
"processor_id": "PROCESSOR_ID",
"target_state": "UNDEPLOYING"
}
}
]
}
}
Could you please provide any advice or guidance on resolving this issue?