Trados Studio
Trados Enterprise
Trados Team
Trados GroupShare
Trados Business Manager
Passolo
MultiTerm
RWS AppStore
Connectors
Beta Groups
Managed Translation
MultiTrans
TMS
WorldServer
Language Weaver
Language Weaver Connectors
Language Weaver Edge
Tridion Docs
Tridion Sites
LiveContent S1000D
XPP
Language Developers
Tridion Docs Developers
Community Help
RWS User Experience
Internal Trados Ideas Community
Mercury
RWS Community Internal Group
RWS Training & Certification
Style Guides
RWS Campus
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
MultiTerm Ideas
Passolo Ideas
RWS Appstore Ideas
Tridion Docs Ideas
Tridion Sites Ideas
Language Weaver Ideas
Language Weaver Edge Ideas
Managed Translation - Enterprise Ideas
TMS Ideas
WorldServer Ideas
LiveContent S1000D Ideas
Contenta S1000D
XPP Ideas
Events & Webinars
To RWS Support
Detecting language please wait for.......
hi,
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.
best regards,
Tamas
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?
Kind regards,
Andrea Ghisa
Hi,
there is another point where the desktop studio instance is tried to be accessed, please check the related github issue:
https://github.com/sdl/Sdl-Community/issues/358
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.
Alejandroi
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.
Kind regards