Expand my Community achievements bar.

SOLVED

About the third party translator(Microsoft Translator)

Avatar

Level 2

Hai,

According to my understanding AEM includes a connector service for Microsoft Translator that is installed by default.

Following the steps:

  • On the rail, click or tap Tools > Operations > Cloud > Cloud Services.

  • In the Microsoft Translator area, then click or tap Show Configurations.

  • Click the + link next to Available Configurations.

    file
  • Tried to create a new Microsoft Translator cloud service configuration.

           In the edit dialog box,the OK button is not in enabled mode.

  •  (attached screenshot) If am going for the 'Connect To Microsoft Translator' option it popups an alert saying "Connection successed , Verification failed".

       Any one please suggest a solution for this issue.

      Is it advisable to use the configuration Microsoft Translator Trial License - Geometrixx-outdoors (Microsoft Translation Configuration) ?

      How can we invoke the configuration service in the page in which we requires the translation to be done(Added the configuration service in the page properties.It is not       getting invoked.)  ?

 

Looking forward for the response.

1 Accepted Solution

Avatar

Correct answer by
Level 8

Hi,

the error indicates that the credentials that you provided for your Microsoft Translator account were not 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.

http://docs.adobe.com/docs/en/aem/6-0/administer/integration/third-party-services/machine-translatio...

hope that helps,
scott

View solution in original post

8 Replies

Avatar

Level 2

When you create an account on azure microsoft link you will see the client id and key after your account gets created succesfully, so enter those in the edit configuration  tab and your work will be done.

Avatar

Correct answer by
Level 8

Hi,

the error indicates that the credentials that you provided for your Microsoft Translator account were not 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.

http://docs.adobe.com/docs/en/aem/6-0/administer/integration/third-party-services/machine-translatio...

hope that helps,
scott

Avatar

Level 2

Thanks Scott.

We configure that and now we are getting the following error, and the error is not very clear to decode the problem.

Could you help?

com.adobe.granite.translation.api.TranslationException: Error Code: TRANSLATION_FAILED.  Message: Status code from HttpClient did not return 200. Status Code: 400 The URL we called was: https://api.microsofttranslator.com/v2/Http.svc/Translate?to=en&contentType=text/html&text=%3Cp%3ETh...   .... The auth_token: Bearer http%3a%2f%2fschemas.xmlsoap.org%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=a819dcca-232b-4370-a8c0-748a673ef34c&http%3a%2f%2fschemas.microsoft.com%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=https%3a%2f%2fdatamarket.accesscontrol.windows.net%2f&Audience=http%3a%2f%2fapi.microsofttranslator.com&ExpiresOn=1407855909&Issuer=https%3a%2f%2fdatamarket.accesscontrol.windows.net%2f&HMACSHA256=Y5mT0IfAK84E8%2fnYsKTtWXeVVrYIel1xLbyBuL%2bFhbs%3d
    at com.adobe.granite.translation.connector.msft.core.impl.MicrosoftTranslationServiceImpl.getTranslate(MicrosoftTranslationServiceImpl.java:219)
    at com.adobe.granite.translation.connector.msft.core.impl.MicrosoftTranslationServiceImpl.translateString(MicrosoftTranslationServiceImpl.java:326)
    at com.adobe.cq.wcm.translation.impl.Translator.getTranslatedString(Translator.java:141)
    at com.adobe.cq.wcm.translation.impl.Translator.getTranslatedText(Translator.java:165)
    at com.adobe.cq.wcm.translation.impl.Translator.translateNodeProperty(Translator.java:116)
    at com.adobe.cq.wcm.translation.impl.Translator.translateNodeProperties(Translator.java:206)
    at com.adobe.cq.wcm.translation.impl.Translator.translateJCRNode(Translator.java:307)
    at com.adobe.cq.wcm.translation.impl.Translator.translateChildNodes(Translator.java:78)
    at com.adobe.cq.wcm.translation.impl.Translator.translateJCRNode(Translator.java:308)
    at com.adobe.cq.wcm.translation.impl.Translator.translateChildNodes(Translator.java:78)
    at com.adobe.cq.wcm.translation.impl.Translator.translateJCRNode(Translator.java:308)
    at com.adobe.cq.wcm.translation.impl.Translator.translateChildNodes(Translator.java:78)
    at com.adobe.cq.wcm.translation.impl.Translator.translateJCRNode(Translator.java:308)
    at com.adobe.cq.wcm.translation.impl.Translator.translateResourcePage(Translator.java:290)
    at com.adobe.cq.wcm.translation.impl.process.TranslateLanguageCopyProcess.translatePageResource(TranslateLanguageCopyProcess.java:266)
    at com.adobe.cq.wcm.translation.impl.process.TranslateLanguageCopyProcess.execute(TranslateLanguageCopyProcess.java:142)
    at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)
    at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:208)
    at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:140)
    at org.apache.sling.event.jobs.JobUtil$1.run(JobUtil.java:365)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

 

Thanks,

Avatar

Level 8

What action are you performing when the error occurs?

Avatar

Level 2

WCM: Translate Language workflow was started...

Avatar

Level 8

Well, a status 400 was returned from the translation service...Did you configure the page to use the cloud service configuration that you created for your MST account?

http://docs.adobe.com/docs/en/aem/6-0/administer/integration/third-party-services/machine-translatio... Page%20with%20a%20Translator%20Service

scott

Avatar

Level 1

Hi ,

I'm getting the same error even though I have configured the proper cloud service configurations.

Same configurations used to work in AEM 6.1 , After migrating to 6.2 Issue started to happen . Any insight to this issue.

 

25.10.2016 04:31:10.620 *ERROR* [JobHandler: /etc/workflow/instances/server0/2016-10-04/sync_translation_job_95:/content/projects/test6_satish/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: TRANSLATION_FAILED.  Message: Status code from HttpClient did not return 200. Status Code: 400 The URL we called was: https://api.microsofttranslator.com/v2/Http.svc/TranslateArray   .... The auth_token: Bearer http%3a%2f%2fschemas.xmlsoap.org%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=chitikenasatish_local_author&http%3a%2f%2fschemas.microsoft.com%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=https%3a%2f%2fdatamarket.accesscontrol.windows.net%2f&Audience=http%3a%2f%2fapi.microsofttranslator.com&ExpiresOn=1477388312&Issuer=https%3a%2f%2fdatamarket.accesscontrol.windows.net%2f&HMACSHA256=W%2fvoMbxkqrXyaoiRSdRm8o9rdEVA3xJwTEXkNHTPpx8%3d...... and data was <TranslateArrayRequest><AppId></AppId><From>en</From><Options><Category xmlns="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2">644fc346-c167-443c-ac9a-b429de7c60b0_GENERAL</Category><ContentType xmlns="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2">text/html</ContentType><ReservedFlags xmlns="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2" /><State xmlns="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2" ></State><Uri xmlns="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2" ></Uri><User xmlns="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2" ></User></Options><Texts><string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">Invoice basics</string></Texts><To>fr</To></TranslateArrayRequest> at com.adobe.granite.translation.connector.msft.core.impl.MicrosoftTranslationServiceImpl.getTranslatedTextForArray(MicrosoftTranslationServiceImpl.java:646)

Avatar

Level 1

Why the Trial version have the same error?
It should have the right credentials, I'm right?