Importing xliff from WPML

I exported 10 xliffs from a site to translate using WPML.

Unfortunately only 6/10 can be prepared by SDL, the others get the unhelpful message 'Object reference not set to an instance of an object'

I've looked at various posts here on the subject but haven't found anything conclusive.

Would appreciate a little guidance if possible, thanks.

Parents
  • It is unhelpful... but if you share the stack trace and not just the headline which is very generic, then there might be something in there to help find the problem:

    Error dialog box in Trados Studio with a message instructing to click on the disk symbol to save the XML to desktop and attach the XML to the forum post.

    Alternatively if you can share one of the files where this is reproducible then that might also help?

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 10:26 PM (GMT 0) on 28 Feb 2024]
  • Thanks Paul, thanks for coming back so speedily

    I solved the preparation problem, some files were FR > NL
    All the FR > EN files now 'prepare' but cannot be opened for translation, same message.

    My project is FR to EN(GB)

    Here is the stack trace for opening.

    If it helps, WPML exports XLIFF v1.2

    <SDLErrorDetails time="26/08/2020 10:27:26">
    <ErrorMessage>The detected target language does not match that expected by the project.</ErrorMessage>
    <Exception>
    <Type>Sdl.TranslationStudio.Api.TranslationStudioException, Sdl.TranslationStudio.Api, Version=15.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
    <HelpLink />
    <Source>Sdl.TranslationStudio.Editor</Source>
    <HResult>-2146233088</HResult>
    <StackTrace><![CDATA[ at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.ResolveLanguages(IMultiFileConverter converter)
    at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.Load(IJobExecutionContext context)
    at Sdl.Desktop.Platform.Services.JobRequest.Execute(IJobExecutionContext context)
    at Sdl.Desktop.Platform.Implementation.Services.Job.<_worker_DoWork>b__47_0()
    at Sdl.Desktop.Logger.Log.Resources(Object message, Action action)
    at Sdl.Desktop.Platform.Implementation.Services.Job._worker_DoWork(Object sender, DoWorkEventArgs e)
    at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)]]></StackTrace>
    </Exception>
    <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>15.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>15.2.7.2849</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Pro</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>SCAN\markl</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>SCAN</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16673756 MB</PhysicalMemory>
    </Environment>
    </SDLErrorDetails>

  • OK so problem solved.

    I recreated a project FR to EN-US and it all works.

    This despite WPML considering the EN to be EN-GB.

    Thanks for the karma, clearly something helped

  • Can you share a file with me to test with?  You can email to pfilkin@sdl.com if this is ok.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • Ah... ok.  I think this is a known issue.  If you use the single document translation for a partially defined language code, like EN, then Studio will handle it by assuming it's en-US as you found out.  But if you createa proper project and define the language as en-GB then Studio doesn't like it because it wants to use en-US.

    I can't find the bug in our database at the moment but I'm pretty sure this is a known issue

    The workarounds for this are these:

    1. do what you have done and create the project as en-US, OR
    2. change the language code from just EN to en-GB and then Studio will handle it correctly

    In general we prefer fully qualified language codes, but we should handle this better.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Reply
  • Ah... ok.  I think this is a known issue.  If you use the single document translation for a partially defined language code, like EN, then Studio will handle it by assuming it's en-US as you found out.  But if you createa proper project and define the language as en-GB then Studio doesn't like it because it wants to use en-US.

    I can't find the bug in our database at the moment but I'm pretty sure this is a known issue

    The workarounds for this are these:

    1. do what you have done and create the project as en-US, OR
    2. change the language code from just EN to en-GB and then Studio will handle it correctly

    In general we prefer fully qualified language codes, but we should handle this better.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Children