Expand my Community achievements bar.

Error encountered while attempting to create language copy

Avatar

Level 2

Im observing the below error in logs, while attempting to create the language copy as per the documentation. I have selected the Microsoft trial license for the same. Is the any other configurations needed prior to translation ?

 

*ERROR* [JobHandler: /var/workflow/instances/server0/2021-11-02/sync_translation_job_15:/content/projects/create_french_languagecopy0/create_french_language_copy/jcr:content/dashboard/gadgets/translationjob] com.adobe.cq.wcm.translation.impl.CQPageMachineTranslator Error while translating property
com.adobe.granite.translation.api.TranslationException: Error Code: TRANSLATION_FAILED. Message: Error Code: REQUEST_FAILED. Message: Access token creation failed for unknown reason. Maybe bad credentials?

6 Replies

Avatar

Community Advisor

Hi @binoyp73053411 

 

The credentials that you provided for your Microsoft Translator account, are they successfully authenticated. You need to create an MS Translator account first, and then create the MS Translator cloud configuration that connects using the credentials for your account.

 

Also I will suggest to use the correct credentials with correct licensen type.

 

Please refer the link here:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/about-the-third-party-tran...

 

Thanks!

Avatar

Level 2

Hey Asutosh,

 

The error is being thrown for the Microsoft Trial configuration. I've used that before and it seemed to work OOTB without any configuration. Does that require configuration now?

Avatar

Level 2

Hi, Adobe engineers? No matter our old AEM 6.5.11 instances which worked fine for many years or 6.5.16, none of them are working now. Any fix for this? Human translation is not an option. Your got to make your out of box product work(we didn't change the Microsoft translation cloud service at all):

12.07.2024 13:03:02.573 *ERROR* [JobHandler: /var/workflow/instances/server0/2024-07-12_1/sync_translation_job_1:/content/projects/claim_form_trans/jcr:content/dashboard/gadgets/translationjob] com.adobe.granite.workflow.core.job.JobHandler Error executing workflow step
com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error
  at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:204) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
  at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:271) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
  at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
  at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
  at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
  at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  at java.lang.Thread.run(Thread.java:750)
Caused by: com.adobe.granite.workflow.WorkflowException: Failed to execute process
  at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:108) [com.day.cq.workflow.cq-workflow-impl:6.3.8.CQ652-B0003]
  at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:194) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
  ... 8 common frames omitted
Caused by: com.day.cq.workflow.WorkflowException: Error while translating language copy for /content/projects/claim_form_trans/jcr:content/dashboard/gadgets/translationjob.
  at com.adobe.cq.wcm.translation.impl.process.SyncTranslationProcess.execute(SyncTranslationProcess.java:135) [com.day.cq.wcm.cq-wcm-translation:1.5.136]
  at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93) [com.day.cq.workflow.cq-workflow-impl:6.3.8.CQ652-B0003]
  ... 9 common frames omitted
Caused by: com.adobe.granite.translation.api.TranslationException: Failed to perform :START_TRANSLATION
  at com.adobe.cq.wcm.translation.impl.TranslationPodImpl.syncTranslation(TranslationPodImpl.java:2608) [com.day.cq.wcm.cq-wcm-translation:1.5.136]
  at com.adobe.cq.wcm.translation.impl.process.SyncTranslationProcess.syncTranslationJob(SyncTranslationProcess.java:170) [com.day.cq.wcm.cq-wcm-translation:1.5.136]
  at com.adobe.cq.wcm.translation.impl.process.SyncTranslationProcess.execute(SyncTranslationProcess.java:130) [com.day.cq.wcm.cq-wcm-translation:1.5.136]
  ... 10 common frames omitted
Caused by: com.adobe.granite.translation.api.TranslationException: Error Code: TRANSLATION_FAILED.  Message: Error Code: REQUEST_FAILED.  Message: Access token creation failed for unknown reason. Maybe bad credentials?
  at com.adobe.granite.translation.connector.msft.core.impl.MicrosoftTranslationServiceImpl.getTranslatedTextForArray(MicrosoftTranslationServiceImpl.java:549) [com.adobe.granite.translation.connector.msft.core:1.3.28]
  at com.adobe.granite.translation.connector.msft.core.impl.MicrosoftTranslationServiceImpl.translateArray(MicrosoftTranslationServiceImpl.java:522) [com.adobe.granite.translation.connector.msft.core:1.3.28]
  at com.adobe.cq.wcm.translation.impl.I18nDictionaryMachineTranslation.translateStrings(I18nDictionaryMachineTranslation.java:117) [com.day.cq.wcm.cq-wcm-translation:1.5.136]
  at com.adobe.cq.wcm.translation.impl.I18nDictionaryMachineTranslation.translateI18nDictionary(I18nDictionaryMachineTranslation.java:71) [com.day.cq.wcm.cq-wcm-translation:1.5.136]
  at com.adobe.cq.wcm.translation.impl.TranslationObjectImpl.startMachineTranslation(TranslationObjectImpl.java:661) [com.day.cq.wcm.cq-wcm-translation:1.5.136]
  at com.adobe.cq.wcm.translation.impl.TranslationObjectImpl.translateNow(TranslationObjectImpl.java:459) [com.day.cq.wcm.cq-wcm-translation:1.5.136]
  at com.adobe.cq.wcm.translation.impl.TranslationPodImpl.startTranslation(TranslationPodImpl.java:1326) [com.day.cq.wcm.cq-wcm-translation:1.5.136]
  at com.adobe.cq.wcm.translation.impl.TranslationPodImpl.syncTranslation(TranslationPodImpl.java:2551) [com.day.cq.wcm.cq-wcm-translation:1.5.136]
  ... 12 common frames omitted 

Avatar

Level 1

Hey David,

I'm getting a similar translation error (below) with our demo installation utilizing the Microsoft Translator trial license.  Were you able to get yours working?

25.07.2024 11:32:33.770 *ERROR* [JobHandler: /var/workflow/instances/server0/2024-07-24/sync_translation_job_43:/content/projects/website_translationproject/website_translation_project/jcr:content/dashboard/gadgets/translationjob] com.adobe.cq.wcm.translation.impl.CQPageMachineTranslator Error while translating property 
com.adobe.granite.translation.api.TranslationException: Error Code: TRANSLATION_FAILED.  Message: Error Code: REQUEST_FAILED.  Message: Access token creation failed for unknown reason. Maybe bad credentials?
  at com.adobe.granite.translation.connector.msft.core.impl.MicrosoftTranslationServiceImpl.getTranslatedTextForArray(MicrosoftTranslationServiceImpl.java:549) [com.adobe.granite.translation.connector.msft.core:1.3.28]
  at com.adobe.granite.translation.connector.msft.core.impl.MicrosoftTranslationServiceImpl.translateArray(MicrosoftTranslationServiceImpl.java:522) [com.adobe.granite.translation.connector.msft.core:1.3.28] 
...

Avatar

Level 2

No need. As long as you can generate your sling message or dictionary file, you are fine. just export the dictionary then import, it will work. Nobody really use the machine translated FR.

Avatar

Level 2

I mean manually enter the translation in your dictionary file will work.