OpenNMT Provider failed

sdlerror-2019214-17h17m39s.sdlerror.xml
<SDLErrorDetails time="2/14/2019 5:17:44 PM">
  <ErrorMessage>Unexpected exception when configuring file multiFileConverter for task 'Pre-translate Files': Failed to create an instance of translation provider 'openlistprovider:///?Rememberme=TRUE&amp;UserName=xx;Password=xx;serverAddress=pQ1XvM4zhLndCghjQeTDTABMPTGkimUDa1BdJhVjHPmNOzl%2f0wTSX7VoNlXG6ebve0hec150G%2fjCe62rP4swJtiAJR0vN4S0FgofDhfFHimeXpv42JyngSpdUqD9oiGVLkw34rkBCC7ZgHbBs7h3D2JRGH7xgtpIPEkuzaKet04%3d&amp;port=&amp;projectName=xx;engineGuid=e7786833-1bb6-f2bc-35e5-39eba683404c&amp;engineSimpleName=MSBingMT-EN-US-DA-DK-874da435f18440738383&amp;engineType=MSBINGMT&amp;languageDirectionSource=EN-US&amp;languageDirectionTarget=DA-DK&amp;MMTSourceCode=&amp;MMTTargetCode=&amp;OverwriteExistingMT=FALSE'..</ErrorMessage>
  <Exception>
    <Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=12.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
    <HelpLink />
    <Source>Sdl.ProjectApi.Implementation</Source>
    <HResult>-2146233088</HResult>
    <StackTrace><![CDATA[   at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskFileExecuter.ConfigureConverter(IMultiFileConverter multiFileConverter, Language targetLanguage)
   at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskFileExecuter.CreateMultiFileConverter(IProjectFile tf, String filePath)
   at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskFileExecuter.Parse(String targetFilePath)]]></StackTrace>
    <InnerException>
      <Type>Sdl.ProjectAutomation.Core.ProjectAutomationException, Sdl.ProjectAutomation.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
      <HelpLink />
      <Source>Sdl.ProjectAutomation.FileBased</Source>
      <HResult>-2146233088</HResult>
      <StackTrace><![CDATA[   at Sdl.ProjectAutomation.FileBased.Internal.AutomationServerEvents.HandleTranslationProviderException(TranslationProviderItem translationProviderItem, Exception exception)
   at Sdl.ProjectApi.Helpers.ProjectCascadeFactory.GetTranslationProviderLanguageDirection(TranslationProviderItem translationProviderItem, LanguagePair languageDirection, Boolean performUpdate, Boolean refreshCache)
   at Sdl.ProjectApi.Helpers.ProjectCascadeFactory.CreateProjectCascadeEntries(IList`1 projectCascadeEntryDataList, LanguagePair languagePair, Boolean readOnly, Boolean refreshCache)
   at Sdl.ProjectApi.Helpers.ProjectCascadeFactory.CreateCascade(ProjectCascadeSettings projectCascadeSettings, Boolean refreshCache)
   at Sdl.ProjectApi.Helpers.LanguageDirectionHelper.CreateCascade(ILanguageDirection languageDirection, ProjectCascadeEntryDataFilterFunction filter, IComparer`1 sort, Boolean readOnly, Boolean refreshCache)
   at Sdl.ProjectApi.Helpers.LanguageDirectionHelper.CreateCascade(ILanguageDirection languageDirection, Boolean refreshCache)
   at Sdl.ProjectApi.Helpers.LanguageObjectsCache.GetLanguageResources(ILanguageDirection languageDirection)
   at Sdl.ProjectApi.Helpers.LanguageObjectsCache.<>c__DisplayClass1.<GetLanguageResources>b__0()
   at Sdl.ProjectApi.Helpers.LanguageObjectsCache.GetOrCreateObject(String key, Func`1 createObject)
   at Sdl.ProjectApi.Helpers.LanguageObjectsCache.GetLanguageResources(IProject project, Language language)
   at Sdl.ProjectApi.Helpers.LanguageObjectsCache.GetLanguageResources(ITranslatableFile file)
   at Sdl.ProjectApi.AutomaticTasks.AbstractContentProcessorTaskImplementation.AddSegmentorToConverter(IExecutingTaskFile executingTaskFile, IBilingualProcessorContainer multiFileConverter)
   at Sdl.ProjectApi.AutomaticTasks.AbstractContentProcessorTaskImplementation.ConfigureSegmentor(IExecutingTaskFile executingTaskFile, IMultiFileConverter multiFileConverter)
   at Sdl.ProjectApi.AutomaticTasks.AbstractContentProcessorTaskImplementation.ConfigureConverter(IExecutingTaskFile executingTaskFile, IMultiFileConverter multiFileConverter)
   at Sdl.ProjectApi.AutomaticTasks.AbstractTmContentProcessorTaskImplementation.ConfigureConverter(IExecutingTaskFile executingTaskFile, IMultiFileConverter multiFileConverter)
   at Sdl.ProjectApi.AutomaticTasks.Translate.TranslateTask.ConfigureConverter(IExecutingTaskFile executingTaskFile, IMultiFileConverter multiFileConverter)
   at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskFileExecuter.ConfigureConverter(IMultiFileConverter multiFileConverter, Language targetLanguage)]]></StackTrace>
      <InnerException>
        <Type>System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
        <ParamName />
        <HelpLink />
        <Source>Sdl.LanguagePlatform.TranslationMemoryApi</Source>
        <HResult>-2147024809</HResult>
        <StackTrace><![CDATA[   at Sdl.LanguagePlatform.TranslationMemoryApi.TranslationProviderManager.CreateTranslationProvider(Uri translationProviderUri, String translationProviderState, ITranslationProviderCredentialStore credentialStore)
   at Sdl.ProjectApi.TranslationProviderCache.CreateTranslationProvider(Uri translationProviderUri, String translationProviderState, ITranslationProviderCredentialStore credentialStore)
   at Sdl.ProjectApi.TranslationProviderCache.GetTranslationProvider(Uri translationProviderUri, String translationProviderState, ITranslationProviderCredentialStore credentialStore, Boolean performUpdate, Boolean refreshCache)
   at Sdl.ProjectApi.Helpers.ProjectCascadeFactory.GetTranslationProviderLanguageDirection(TranslationProviderItem translationProviderItem, LanguagePair languageDirection, Boolean performUpdate, Boolean refreshCache)]]></StackTrace>
      </InnerException>
    </InnerException>
  </Exception>
  <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>12.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>12.2.5195.7</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 7 Professional </OperatingSystem>
    <ServicePack>Service Pack 1</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>xx</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>CZ-079</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16655188 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

Hello all, I am trying to integrate openNMT – seems here are credentials kept. But the result failed in api, working fine in Studio.

  • Unexpected exception when configuring file multiFileConverter for task 'Pre-translate Files': Failed to create an instance of translation provider
  • Failed to create an instance of translation provider
  • No translation provider factory found for uri

 

Here is the simple code:

                   TranslationProviderConfiguration tpc_langspec = project.GetTranslationProviderConfiguration(lang);

 

                   foreach (var tpcItem_langspec in tpc_langspec.Entries.ToList())

                   {

                       string content_all = tpcItem_langspec.MainTranslationProvider.Uri.AbsoluteUri.ToString();

 

                       if (content_all.Contains("openlistprovider"))

                       {

                           Uri uri = tpcItem_langspec.MainTranslationProvider.Uri;

                           project.Credentials.AddCredential(uri, String.Format("user={0};password={1};type=CustomUser", "xx", "xx", false));

                           project.UpdateTranslationProviderConfiguration(lang, tpc_langspec);

                       }

                   }

 

Also, please, find attached a stacktrace.

 

the URI:

openlistprovider:///?Rememberme=TRUE&UserName=XXX&Password=XXXLILPTWxshSQ8VQpKEzObpMWSYxSIqDpipZxiVaXOc16oAjIs9JIhGga3O8ePVLhI6lw94aS1mmVNvSbs3FEL0bJG2N4uiH84Qm8WHcOChiE6YZ5hrROTZ71QTAvRe3Jz7Cvcw8wrAe4X%2bRWR9pKiSm5xfumME%3d&serverAddress=pQ1XvM4zhLndCghjQeTDTABMPTGkimUDa1BdJhVjHPmNOzl%2f0wTSX7VoNlXG6ebve0hec150G%2fjCe62rP4swJtiAJR0vN4S0FgofDhfFHimeXpv42JyngSpdUqD9oiGVLkw34rkBCC7ZgHbBs7h3D2JRGH7xgtpIPEkuzaKet04%3d&port=&projectName=XXXX-All&engineGuid=e7786833-1bb6-f2bc-35e5-39eba683404c&engineSimpleName=MSBingMT-EN-US-DA-DK-874da435f18440738383&engineType=MSBINGMT&languageDirectionSource=EN-US&languageDirectionTarget=DA-DK&MMTSourceCode=&MMTTargetCode=&OverwriteExistingMT=FALSE

 

Thanks and regards,

Mirek