Salesforce

Unable to update main translation memory if WorldServer (server) Translation Memory is used in project created in Studio - error 'TranslationProviderThrewException'

« Go Back

Information

 
Article TypeSolution Article
Scope/EnvironmentSDL WorldServer
Symptoms/Context

When adding the WorldServer (server) Translation memory to a local project created in Trados Studio, the batch task Update main translation memories fails with the attached error

TranslationProviderThrewException

User-added image

 

When clicking on Show Details, the Stack Trace displays:
 

<?xml version="1.0"?>

-<SDLErrorDetails time="12.10.2021 17:09:25">

<ErrorMessage>TranslationProviderThrewException</ErrorMessage>


-<Exception>

<Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=16.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>

<HelpLink/>

<Source/>

<HResult>-2146233088</HResult>


-<StackTrace>

-<![CDATA[]]>
</StackTrace>


-<InnerException>

<Type>System.Web.Services.Protocols.SoapException, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Type>

<Actor/>

<Lang/>

<Node/>

<Role/>

<HelpLink/>

<Source>System.Web.Services</Source>

<HResult>-2146233087</HResult>


-<StackTrace>

-<![CDATA[   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Com.Idiominc.Webservices.Data.AssetWSAssetManagerService.getSegment(String token, Int32 segmentedAssetId, Int32 segmentedDocId, String sequenceNum)
   at Com.Idiominc.Webservices.Client.Asset.WSAssetManager.getSegment(Int32 segmentedAssetId, Int32 segmentedDocId, String sequenceNum)
   at Sdl.TranslationStudio.Plugins.WorldServerTranslationProvider.Api.WorldServerTranslationProviderLanguageDirection.AddTranslationUnitEx(TranslationUnit translationUnit)
   at Sdl.TranslationStudio.Plugins.WorldServerTranslationProvider.Api.WorldServerTranslationProviderLanguageDirection.AddOrUpdateTranslationUnitsMasked(TranslationUnit[] translationUnits, Int32[] previousTranslationHashes, ImportSettings settings, Boolean[] mask)
   at Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.AddOrUpdateTranslationUnitsMaskedCommand.Execute(T cascadeEntry, ImportSettings importSettings)
   at Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.ExecuteUpdateCommand(UpdateCommand`1 updateCommand, ImportSettings importSettings, IEnumerable`1& cascadeMessages)]]>
</StackTrace>

</InnerException>

Resolution
While it is possible to connect to a Worldserver (server) Translation Memory from a local Studio project and eve mark it as Update TM in the Project Settings, you cannot update that Translation Memory by confirming a segment or by using the Update Main Translation Memory batch task. If you try to run that batch, you will get the error. This behaviour is intentional: it is not allowed to update a WorldServer Translation Memory from a local Studio project. This is a security measure that has been taken long ago. Such action is reserved for Worldserver Studio projects coming from WorldServer.

Therefore, this is only possible when working on a WorldServer Studio project created out of a WSXZ package exported from the WorldServer environment. Ideally, the export will contain the Worldserver URL to connect to the WorldServer server TM.

Two more conditions:

1- The Worldserver environment must be live TM
2- The user has permission to access and update the Worldserver TM
Root Cause
Reference
Attachment 1 
Attachment 2 
Attachment 3 
Attachment 4 
Attachment 5 

Powered by