What is "Unexpected file role: unknown" showing in "Project Details"? Buggy SDL Studio 2017 once again!

Former Member
Former Member

And next time you try to open Studio 2017 you get these weird errors (related, it seems, to drag and drop... which I am NOT using, nor have used it!):

These geeky, cryptic errors messages should never, EVER, be shown to the end users! They're intended for SDL developers.

SDL Trados Studio 2017 SR1 (and before) has proven to be, time and again, buggy! SR1, in my opinion, is half-baked.

May I ask, what is SDL doing about it?

  • Hi  ,

    Did you click on the links in the error messages that search the community or the knowledgebase for more information? You may not find anything as I have not seen this one before, but worth checking.

    Can you share the error stack so we can see the details of the error messages underneath? Just save it as an xml and attach it to the post.

    And how are you opening your files when you get this?

    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

  • Former Member
    0 Former Member in reply to Paul

    1) The links are useless. 2) I'm not even opening any files.  3) Like I said, when I "try to open Studio 2017", meaning I don't even get to open Studio 2017. 4) How did all this started? I decided to add a description to one of my translation projects (in Project Settings / Project) which I changed right away (you know, when you change your mind). Once I changed the description, the next thing is that the "Project Details" tab only shows the "Unexpected file role: Unknown" error and not the details. I closed Studio. Then, a few hours later when I wanted to continue working on a project I get what I described above in 2, 2a and 3.

    I'm attaching the xml file with the 'stack trace' (sdlerror-2017922-20h27m0s.sdlerror.xml).

    Thanks, Paul.

    <SDLErrorDetails time="9/22/2017 8:27:21 PM">
      <ErrorMessage>Unexpected file role: Unknown</ErrorMessage>
      <Exception>
        <Type>System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
        <ParamName />
        <HelpLink />
        <Source>Sdl.TranslationStudio.ProjectManagement</Source>
        <HResult>-2147024809</HResult>
        <StackTrace><![CDATA[   at Sdl.TranslationStudio.ProjectManagement.ProjectsView.ProjectDetailsViewPartControl.FormatFiles(IProject project)
       at Sdl.TranslationStudio.ProjectManagement.ProjectsView.ProjectDetailsViewPartControl.RefreshContent()]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>SDL Trados Studio</ProductName>
        <ProductVersion>14.0.0.0</ProductVersion>
        <EntryAssemblyFileVersion>14.1.6329.7</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Pro</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1033</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>Machine1\User03</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>Machine1</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>8378192 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

  • Hi Ozzie,

    Can you edit the sdlproj file for that project and remove the description you used? You need to leave this (so remove the txt between the quotes):

    Description=""

    In the <GeneralProjectInfo> element for that project.

    See if that will allow you to open Studio without an error. I followed your steps and I can't cause this problem at the moment.

    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

  • Former Member
    0 Former Member in reply to Paul

    Studio eventually opened with no error messages. The "Unexpected file role: Unknown" error persists, whether I edit the .sdlproj file or not. It keeps showing in the "Project Details" tab of the project. Other than that, the project in question (the only one with this problem in the "Project Details" tab) and other projects seem to work fine. Thanks.

  • Former Member
    0 Former Member in reply to Paul

    Bingo!

    Paul, I figured out what caused the "Project Details" tab not showing. It has to do with an AppStore App ("projectTermExtract" http://appstore.sdl.com/language/app/projecttermextract/817/) which creates XML files whose role is "unknown", unlike the usual "Translatable" role. Sure enough, Studio, when trying to populate the "Project Details" tab, will find some of the (project) files with a value of "Unknown" for the attribute "Role" in the <ProjectFile> tag. See below.

    <ProjectFile Guid="5956ccec-f927-4ae6-b585-2556c8f5ecf8" Path="" Role="Unknown" Name="[MyProjectName]_2017_09_20_10_01.xml" ParentProjectFileGuid="00000000-0000-0000-0000-000000000000">

    I had two of these files listed in my .sldproj file, deleted their corresponding <ProjectFile> tags, and, voilà!, the "Project Details" is showing again.

    It seems that this "Unexpected file role: Unknown" error is only triggered when you decide to edit the Project Settings but the problem becomes latent once "projectTermExtract" creates the XML files.

    Regarding the other errors I mentioned, and why Studio was stalled at the Splash Screen, I have no idea.

    I hope this may help other colleagues.

    Thanks.

  • Hi ,

    Can you download and install the latest version of the plugin?

    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

  • Former Member
    0 Former Member in reply to Paul
    When the plugin extracts multi-word terms (and not just single word terms as of now) I will. Thanks.