ErrorMessage: Only Exception type is allowed Trados2024

Hello everyone,

I'm encountering an issue while trying to translate a Word document from English to Spanish using the OpenAI translation plugin for Trados. The plugin works perfectly for smaller projects and even worked once with this particular file, but now it has stopped functioning.

Problem Details:

  • The document contains a lot of tags , including a table of contents with links.
  • The file opens without any issues and is translatable line by line, the NMT is also working line by line.
  • The main problem arises when I attempt to run the batch task to pre-translate the file using Neural Machine Translation (NMT).
  • I receive the following error message when running the batch task:

Error Message: [ Only Exception type is allowed ]

  • I have also checked the OpenAI log (attached below), and it seems there's no data sending back.
  • API has charged the usage.

Steps I've Tried:

  • Verified that the plugin works with other smaller projects(plain words).
  • reinstalled the Trados2024
  • Restarted Trados and my computer.
  • Checked my internet connection to ensure it's stable.
  • Reviewed the plugin settings to confirm they're correctly configured.
  • I have tried all different configeration(including change the 

Request:

Has anyone experienced a similar issue or have any suggestions on how to fix this problem? Any insights or solutions would be greatly appreciated.

Thank you in advance for your assistance!

Screenshot of a document with multiple hyperlinked text entries, each associated with a reference number and marked with a checkbox.

Screenshot of Trados Studio settings showing Translation Memory and Automated Search options with various match value and hit settings.Screenshot of Trados Studio plugin settings for OpenAI with options for ignoring segments, enabling suggestions, and including tags in suggestions.

<SDLErrorDetails time="2024-09-25 3:50:08 PM">
  <ErrorMessage>Only Exception type is allowed</ErrorMessage>
  <Exception>
    <Type>System.Runtime.Serialization.SerializationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>Sdl.ProjectApi.Implementation</Source>
    <HResult>-2146233076</HResult>
    <StackTrace><![CDATA[   at Sdl.ProjectApi.Implementation.Util.DeserializationBinder.BindToType(String assemblyName, String typeName)
   at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Bind(String assemblyString, String typeString)
   at System.Runtime.Serialization.Formatters.Soap.SoapHandler.ProcessGetType(String value, String xmlKey, String& assemblyString)
   at System.Runtime.Serialization.Formatters.Soap.SoapHandler.ProcessType(ParseRecord pr, ParseRecord objectPr)
   at System.Runtime.Serialization.Formatters.Soap.SoapHandler.ProcessAttributes(ParseRecord pr, ParseRecord objectPr)
   at System.Runtime.Serialization.Formatters.Soap.SoapHandler.StartChildren()
   at System.Runtime.Serialization.Formatters.Soap.SoapParser.ParseXml()
   at System.Runtime.Serialization.Formatters.Soap.SoapParser.Run()
   at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Deserialize(HeaderHandler handler, ISerParser serParser)
   at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream, HeaderHandler handler)
   at Sdl.ProjectApi.Implementation.Util.DeserializeException(String s)
   at Sdl.ProjectApi.Implementation.Xml.ExecutionMessage.get_Exception()
   at Sdl.ProjectApi.Implementation.ExecutionMessage.get_Exception()
   at Sdl.TranslationStudio.Common.Tasks.ExecutionMessagesControl.AddMessage(IExecutionMessage message, String fileName)
   at Sdl.TranslationStudio.Common.Tasks.ExecutionMessagesControl.AddMessages(IEnumerable`1 messages, String fileName)
   at Sdl.TranslationStudio.Common.Tasks.TaskExecutionMessagesControl.AddMessages()
   at Sdl.TranslationStudio.Common.Tasks.TaskExecutionMessagesControl.set_ScheduledTask(IScheduledTask value)
   at Sdl.TranslationStudio.Common.Tasks.ScheduledTaskDetailsControl.FillMessages()
   at Sdl.TranslationStudio.Common.Tasks.ScheduledTaskDetailsControl.FillData()
   at Sdl.TranslationStudio.Common.Tasks.ScheduledTaskDetailsControl.set_ScheduledTask(IScheduledTask value)
   at Sdl.TranslationStudio.Common.Tasks.ScheduledTaskDetailsDialog.set_ScheduledTask(IScheduledTask value)
   at Sdl.TranslationStudio.Common.Tasks.ScheduledTasksResultsControl.ShowResults()
   at Sdl.TranslationStudio.Common.Tasks.ScheduledTasksResultsControl._list_DefaultAction(Object sender, EventArgs e)
   at Sdl.Platform.UI.DataListControl.DataList.OnDefaultAction(EventArgs e)
   at Sdl.Platform.UI.DataListControl.DataList.BodyControl.OnDoubleClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)]]></StackTrace>
  </Exception>
  <Environment>
    <ProductName>Trados Studio</ProductName>
    <ProductVersion>Studio18</ProductVersion>
    <EntryAssemblyFileVersion>18.0.0.1013</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 11 Home</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>936</CodePage>
    <LoggedOnUser>BBLACK\Jack</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>BBLACK</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16703248 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

OpenAI.Provider.ViewModel.TranslationViewModel: 2024-09-25 17:13:45.6119 Info Method: "ApplyTranslation", ProcessId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx[306]", Text: "― Время", Model: "gpt-3.5-turbo"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:45.8659 Info Method: "GetTranslationResponse", Action: "Read", Status: OK, Payload: "{\n  \"id\": \"chatcmpl-ABINe7p9IWjfi4nsYLwdbuOIbDAOe\",\n  \"object\": \"chat.completion\",\n  \"created\": 1727255626,\n  \"model\": \"gpt-4o-2024-05-13\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"<TransUnit>\\n    <Translation>― Информация о передаче<\/Translation>\\n<\/TransUnit>\",\n        \"refusal\": null\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 128,\n    \"completion_tokens\": 21,\n    \"total_tokens\": 149,\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0\n    }\n  },\n  \"system_fingerprint\": \"fp_e375328146\"\n}"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:45.9735 Info Method: "GetTranslationResponse", Action: "Read", Status: OK, Payload: "{\n  \"id\": \"chatcmpl-ABINeps8H2Mk4AhckqSEuKQMRK8Nn\",\n  \"object\": \"chat.completion\",\n  \"created\": 1727255626,\n  \"model\": \"gpt-4o-2024-05-13\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"<TransUnit>\\n  <Translation>― Информация о передаче<\/Translation>\\n<\/TransUnit>\",\n        \"refusal\": null\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 128,\n    \"completion_tokens\": 21,\n    \"total_tokens\": 149,\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0\n    }\n  },\n  \"system_fingerprint\": \"fp_e375328146\"\n}"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:45.9795 Info Method: "GetTranslationRequest", Action: "Send", Model: "gpt-4o", Temperature: 0.59, MaxTokens: 0, SourceLanguage: "en-US", TargetLanguage: "ru-RU", PromptText: "Translate the following text into Russian, using professional automotive manual terminology. Maintain a formal, clear, and instructional tone suitable for an automotive manual.", IncludeComment: false, CommentPrompt: NULL, SourceXml: "― Driving Mode* (AT Models)", TargetXml: NULL, Terms: "", ProcessId: "308"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:46.0646 Info Method: "GetTranslationRequest", Action: "Send", Model: "gpt-4o", Temperature: 0.59, MaxTokens: 0, SourceLanguage: "en-US", TargetLanguage: "ru-RU", PromptText: "Translate the following text into Russian, using professional automotive manual terminology. Maintain a formal, clear, and instructional tone suitable for an automotive manual.", IncludeComment: false, CommentPrompt: NULL, SourceXml: "― Driving Mode* (AT Models)", TargetXml: NULL, Terms: "", ProcessId: "308"  
OpenAI.Provider.ViewModel.TranslationViewModel: 2024-09-25 17:13:46.3999 Info Method: "ApplyTranslation", ProcessId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx[307]", Text: "― Информация о передаче", Model: "gpt-3.5-turbo"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:46.9709 Info Method: "GetTranslationRequest", Action: "Send", Model: "gpt-4o", Temperature: 0.59, MaxTokens: 0, SourceLanguage: "en-US", TargetLanguage: "ru-RU", PromptText: "Translate the following text into Russian, using professional automotive manual terminology. Maintain a formal, clear, and instructional tone suitable for an automotive manual.", IncludeComment: false, CommentPrompt: NULL, SourceXml: "Engine Compartment", TargetXml: NULL, Terms: "", ProcessId: "309"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:47.2609 Info Method: "GetTranslationRequest", Action: "Send", Model: "gpt-4o", Temperature: 0.59, MaxTokens: 0, SourceLanguage: "en-US", TargetLanguage: "ru-RU", PromptText: "Translate the following text into Russian, using professional automotive manual terminology. Maintain a formal, clear, and instructional tone suitable for an automotive manual.", IncludeComment: false, CommentPrompt: NULL, SourceXml: "― Driving Mode* (AT Models)", TargetXml: NULL, Terms: "", ProcessId: "308"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:47.5675 Info Method: "GetTranslationResponse", Action: "Read", Status: OK, Payload: "{\n  \"id\": \"chatcmpl-ABINfCB3HdtcFvLEbXbKLDs47kcqf\",\n  \"object\": \"chat.completion\",\n  \"created\": 1727255627,\n  \"model\": \"gpt-4o-2024-05-13\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"<TransUnit>\\n    <Translation>― Режим вождения* (модели с автоматической трансмиссией)<\/Translation>\\n<\/TransUnit>\",\n        \"refusal\": null\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 133,\n    \"completion_tokens\": 33,\n    \"total_tokens\": 166,\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0\n    }\n  },\n  \"system_fingerprint\": \"fp_e375328146\"\n}"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:47.5735 Info Method: "GetTranslationRequest", Action: "Send", Model: "gpt-4o", Temperature: 0.59, MaxTokens: 0, SourceLanguage: "en-US", TargetLanguage: "ru-RU", PromptText: "Translate the following text into Russian, using professional automotive manual terminology. Maintain a formal, clear, and instructional tone suitable for an automotive manual.", IncludeComment: false, CommentPrompt: NULL, SourceXml: "Engine Compartment", TargetXml: NULL, Terms: "", ProcessId: "309"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:47.7134 Info Method: "GetTranslationResponse", Action: "Read", Status: OK, Payload: "{\n  \"id\": \"chatcmpl-ABINfv3CTnramUBi4MIivASDGZdQA\",\n  \"object\": \"chat.completion\",\n  \"created\": 1727255627,\n  \"model\": \"gpt-4o-2024-05-13\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"<TransUnit>\\n    <Translation>― Режим вождения* (модели с автоматической коробкой передач)<\/Translation>\\n<\/TransUnit>\",\n        \"refusal\": null\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 133,\n    \"completion_tokens\": 32,\n    \"total_tokens\": 165,\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0\n    }\n  },\n  \"system_fingerprint\": \"fp_e375328146\"\n}"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:47.8923 Info Method: "GetTranslationResponse", Action: "Read", Status: OK, Payload: "{\n  \"id\": \"chatcmpl-ABINgQ4Efzl6eNPn4WWzgkMUSqKYM\",\n  \"object\": \"chat.completion\",\n  \"created\": 1727255628,\n  \"model\": \"gpt-4o-2024-05-13\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"<TransUnit>\\n    <Translation>Отсек двигателя<\/Translation>\\n<\/TransUnit>\",\n        \"refusal\": null\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 128,\n    \"completion_tokens\": 18,\n    \"total_tokens\": 146,\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0\n    }\n  },\n  \"system_fingerprint\": \"fp_e375328146\"\n}"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:47.8923 Info Method: "GetTranslationRequest", Action: "Send", Model: "gpt-4o", Temperature: 0.59, MaxTokens: 0, SourceLanguage: "en-US", TargetLanguage: "ru-RU", PromptText: "Translate the following text into Russian, using professional automotive manual terminology. Maintain a formal, clear, and instructional tone suitable for an automotive manual.", IncludeComment: false, CommentPrompt: NULL, SourceXml: "M9T-60A Model", TargetXml: NULL, Terms: "", ProcessId: "310"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:48.2977 Info Method: "GetTranslationResponse", Action: "Read", Status: OK, Payload: "{\n  \"id\": \"chatcmpl-ABINg7ywcy6Ws7meJGoEhVj8e6QWg\",\n  \"object\": \"chat.completion\",\n  \"created\": 1727255628,\n  \"model\": \"gpt-4o-2024-05-13\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"<TransUnit>\\n    <Translation>Отсек двигателя<\/Translation>\\n<\/TransUnit>\",\n        \"refusal\": null\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 128,\n    \"completion_tokens\": 18,\n    \"total_tokens\": 146,\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0\n    }\n  },\n  \"system_fingerprint\": \"fp_e375328146\"\n}"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:48.5921 Info Method: "GetTranslationResponse", Action: "Read", Status: OK, Payload: "{\n  \"id\": \"chatcmpl-ABINheEypcBgxgH08RH0KXEgUObSX\",\n  \"object\": \"chat.completion\",\n  \"created\": 1727255629,\n  \"model\": \"gpt-4o-2024-05-13\",\n  \"choices\": [\n    {\n      \"index\": 0,\n      \"message\": {\n        \"role\": \"assistant\",\n        \"content\": \"<TransUnit>\\n    <Translation>Модель M9T-60A<\/Translation>\\n<\/TransUnit>\",\n        \"refusal\": null\n      },\n      \"logprobs\": null,\n      \"finish_reason\": \"stop\"\n    }\n  ],\n  \"usage\": {\n    \"prompt_tokens\": 132,\n    \"completion_tokens\": 23,\n    \"total_tokens\": 155,\n    \"completion_tokens_details\": {\n      \"reasoning_tokens\": 0\n    }\n  },\n  \"system_fingerprint\": \"fp_9f2bfdaa89\"\n}"  
OpenAI.Provider.API.AIProvider: 2024-09-25 17:13:48.7874 Info Method: "GetTranslationRequest", Action: "Send", Model: "gpt-4o", Temperature: 0.59, MaxTokens: 0, SourceLanguage: "en-US", TargetLanguage: "ru-RU", PromptText: "Translate the following text into Russian, using professional automotive manual terminology. Maintain a formal, clear, and instructional tone suitable for an automotive manual.", IncludeComment: false, CommentPrompt: NULL, SourceXml: "Windshield Washer Fluid Reservoir (Page", TargetXml: NULL, Terms: "", ProcessId: "311"  



Generated Image Alt-Text
[edited by: RWS Community AI at 10:07 AM (GMT 1) on 25 Sep 2024]
emoji