Trados Business Manager
Language Weaver Connectors
Language Weaver Edge
Tridion Docs Developers
RWS User Experience
Internal Trados Ideas Community
RWS Community Internal Group
RWS Training & Certification
RWS Enterprise Technology Partners
Trados Approved Trainers
ETUG (European Trados User Group) Public Information
Nordic Tridion Docs User Group
Tridion West Coast User Group
Trados Studio Ideas
Trados GroupShare Ideas
Trados Team Ideas
Trados Team Terminology Ideas
Trados Enterprise Ideas
Trados Business Manager Ideas
RWS Appstore Ideas
Tridion Docs Ideas
Tridion Sites Ideas
Language Weaver Ideas
Language Weaver Edge Ideas
Managed Translation - Enterprise Ideas
LiveContent S1000D Ideas
Events & Webinars
To RWS Support
Detecting language please wait for.......
I'm trying to run an Analysis through the studio API (from a 3rd party app), and I use the DeepL plugin. However, I get an error message like this:
Unexpected exception when initializing task 'Analyze Files': Failed to create an instance of translation provider 'deepltranslationprovider:///?sendPlain=False'.. ---> Sdl.ProjectApi.ProjectApiException: Unexpected exception when initializing task 'Analyze Files': Failed to create an instance of translation provider 'deepltranslationprovider:///?sendPlain=False'.. ---> Sdl.ProjectAutomation.Core.ProjectAutomationException: Failed to create an instance of translation provider 'deepltranslationprovider:///?sendPlain=False'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Sdl.Desktop.IntegrationApi.AbstractApplication..ctor() at Sdl.TranslationStudioAutomation.IntegrationApi.Internal.SdlTradosStudioApplication..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance[T]() at Sdl.Desktop.IntegrationApi.ApplicationHost`1.get_Application() at Sdl.Community.DeepLMTProvider.DeepLMtTranslationProviderLanguageDirection..ctor(DeepLMtTranslationProvider deepLMtTranslationProvider, LanguagePair languageDirection) at Sdl.Community.DeepLMTProvider.DeepLMtTranslationProvider.GetLanguageDirection(LanguagePair languageDirection) at Sdl.ProjectApi.Helpers.ProjectCascadeFactory.GetTranslationProviderLanguageDirection(TranslationProviderItem translationProviderItem, LanguagePair languageDirection, Boolean performUpdate, Boolean refreshCache)
Based on the stacktrace, it seems that the plugin tries to access the host studio application that does not exist if I use the studio api from a 3rd party application, without starting studio itself.
Can someone help finding a workaround or fixing this?
Several months ago, this used to work still, but seems like an upgrade in the plugin introduced this dependency.
Hi Tamas Meszaros,
We updated the DeepL version from the AppStore. Can you please take the latest version and test if you are able to pre-translate?
there is another point where the desktop studio instance is tried to be accessed, please check the related github issue:
Hi Andrea-Melinda Ghisa
I have seen this or similar issues addressed in the community and replied by you.
I am currently using v4.8.25 of the plug-in, and I am still having issues when executing the Analyze and Pre-translate tasks from the API whenever my project template includes a Deepl MT provider. Could you please confirm from which version are this issues fixed?
For Analyze I have the same exception as Tamas above:
Unexpected exception when initializing task 'Analyze Files': Failed to create an instance of translation provider 'deepltranslationprovider:///?formality=Default&sendPlain=False'..
For Pre-translate I have the exception:
Unexpected exception when configuring file multiFileConverter for task 'Pre-translate Files': Failed to create an instance of translation provider 'deepltranslationprovider:///?formality=Default&sendPlain=False'..
Thank you very much for your valuable support.
Some more info:
I tried to programmatically add the provider as you describe here an still doesn't work. I have also tried while Studio is running.
You feedback will be very welcome.