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

Glossary not found.; Failed to initialize a glossary.

I have created glossary to translate text using Cloud Translation API. it shows me status as running-
"name": "projects/xxx/locations/us-central1/operations/xxx",
"metadata": {
"@type": "type.googleapis.com/google.cloud.translation.v3.CreateGlossaryMetadata",
"name": "projects/xxx/locations/us-central1/glossaries/xxx",
"state": "RUNNING",
"submitTime": "2022-11-18T03:59:51.876209069Z"
}
}

but when I am trying to use this Glossary for translation api, it shows me error as-
"Glossary not found.; Failed to initialize a glossary".
Even when I tried listing my Glossary, it doesn't show.

Not sure what is the issue. Console activity dashboard shows activity as created Glossary.

0 1 568
1 REPLY 1

Make sure that all permissions are appropriately established.

 

In order to make sure you see it, I would suggest listing your glossaries. If you don't, at least you are aware of the problem.

Furthermore, I don't believe that this is a permissions issue. Explicit permission errors ought to be returned if there is a permission problem.

I advise beginning with the create glossary sample and then attempting to access the same resource using the example code you're using in order to troubleshoot.