Batch Import into Server-based TMs using PowerShell and Studio 2014 API/Assemblies

Hi,

for this post, I'm referring to http://community.sdl.com/phase_2_groups/sdl_openexchange_developers/f/57/p/654/3799.aspx, since the error message we get looks a lot like the one posted there.

We want to import .tmx files into server-based TMs, but end up getting error messages like the following (the marked number increases with every call):

<FileNotFoundException xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.datacontract.org/2004/07/System.IO"><ClassName xmlns="" i:type="x:string">Sy
stem.IO.FileNotFoundException</ClassName><Message xmlns="" i:type="x:string">C:\ProgramData\SDL\TM Server\358\Corporate_enUS_caES.tmx</Message><Data xmlns="" i:nil="true" /><InnerException xmlns="" i:nil="true" /><He
lpURL xmlns="" i:nil="true" /><StackTraceString xmlns="" i:type="x:string"> at Sdl.LanguagePlatform.TranslationMemoryApi.TranslationMemoryImporter.Import(String fileName)
at Sdl.LanguagePlatform.ServerBasedTranslationMemory.Tasks.ImportTranslationUnitsWorkItem.Execute()
at Sdl.Enterprise2.Platform.Execution.WorkItemSlotEntry.ForwardCall()
at Sdl.Enterprise2.Platform.Execution.WorkItemSlotEntry.RunCallback(Object state)</StackTraceString><RemoteStackTraceString xmlns="" i:nil="true" /><RemoteStackIndex xmlns="" i:type="x:int">0</RemoteStackIndex><Ex
ceptionMethod xmlns="" i:type="x:string">8
Import
Sdl.LanguagePlatform.TranslationMemoryApi, Version=1.6.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888
Sdl.LanguagePlatform.TranslationMemoryApi.TranslationMemoryImporter
Void Import(System.String)</ExceptionMethod><HResult xmlns="" i:type="x:int">-2147024894</HResult><Source xmlns="" i:type="x:string">Sdl.LanguagePlatform.TranslationMemoryApi</Source><WatsonBuckets xmlns="" i:nil="tr
ue" /><FileNotFound_FileName xmlns="" i:nil="true" /><FileNotFound_FusionLog xmlns="" i:nil="true" /></FileNotFoundException>

When using the C# code originating from http://producthelp.sdl.com/SDK/TranslationMemoryApi/3.0/html/f22651a5-fc11-40d9-b0bf-adda69b322a2.htm for testing purposes, we just get a DataAccessException at importer.Queue():

Sdl.Core.Api.DataAccess.DataAccessException was unhandled

  HResult=-2146233088

  Message=Operand type clash: uniqueidentifier is incompatible with int

  Source=Sdl.LanguagePlatform.TranslationMemoryApi

How to solve this issue of not being able to import .tmx files into server-based TMs using PowerShell and Studio 2014 API/Assemblies?

Thanks a lot!

Simon

Parents Reply Children
No Data