"Unexpected exception when completing task 'Analizar archivos': Error al crear el informe.."

Hi!

I'm new here...

I was trying to analyse a file and, even though the analyse is "successfully" completed, no report is produced.

Please, find below the message I get:

Error dialog box in Trados Studio with a red cross icon, displaying the message 'Unexpected exception when completing task 'Analyze files': Error creating the report'. Buttons for 'Knowledge Base' and 'Community' are visible, along with an 'Accept' button.

"Unexpected exception when completing task 'Analyse files': Error creating the report"

PS: In this case, I opened the file as a "single file", not within a Project... just in case it make any difference. 

Can anybody help me?

Thanks!



Generated Image Alt-Text
[edited by: Trados AI at 5:40 AM (GMT 0) on 29 Feb 2024]
emoji
Parents
  • Hi ,

    Could you please give us a bit more details about the issue? Please save the error by clicking on the disc icon and, then saving to your desktop and including this in communications with us.

    These 'error stacks' helps us locate the issues and provide solutions much quicker generally.

    Trados Studio error message saying 'Failed to save target content: Could not find a part of the path C:UsersAppDataLocalTemp'.

    You can also post the full 'error stack':

     Trados Studio forum interface showing an error message window with a red arrow pointing to 'Click here' and 'Advanced Editing Options' highlighted in red.

     

    Oana Nagy | Developer Experience | QA Engineer | RWS Group

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 5:41 AM (GMT 0) on 29 Feb 2024]
  • Good morning, Oana!

    Thank you very much for your quick and really useful reply. 

    I’ve followed your suggestions and I’ve already found what was causing the problem. 

    When I’ve clicked on the icon for “display error details” it said: “Could not find a part of the path:…”

    It turns out that the path was too long. I’ve renamed the file with a shorter name and the problem has been solved. TRADOS analyses the file and creates the report correctly.

    I’ve also clicked on the disc icon and, even if I don’t quite understand the “code”, I think it says something like “DirectoryNotFoundException” and there are also mentions to the “path”. I attach it here anyway.

    Thanks a lot for your help!

    You’ve solved my problem, and now I know a bit more about how to deal with “errors” and how to provide relevant information to the Community if necessary Blush

    <SDLErrorDetails time="11/02/2022 8:42:10">
      <ErrorMessage>Unexpected exception when completing task 'Analizar archivos': Error al crear el informe..</ErrorMessage>
      <Exception>
        <Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=16.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
        <HelpLink />
        <Source>Sdl.ProjectApi.Implementation</Source>
        <HResult>-2146233088</HResult>
        <StackTrace><![CDATA[   en Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskComplete()
       en Sdl.ProjectApi.Implementation.AutomaticTaskExecuter.Execute()]]></StackTrace>
        <InnerException>
          <Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=16.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
          <HelpLink />
          <Source>Sdl.ProjectApi.Implementation</Source>
          <HResult>-2146233088</HResult>
          <StackTrace><![CDATA[   en Sdl.ProjectApi.Implementation.ScheduledTask.AddReport(ITaskTemplate taskTemplate, String name, String description, String data, ILanguageDirection languageDirection, Boolean isCustomReport)
       en Sdl.ProjectApi.Implementation.ExecutingAutomaticTask.CreateReport(ITaskTemplate taskTemplate, String name, String description, String data, ILanguageDirection languageDirection)
       en Sdl.ProjectApi.AutomaticTasks.Tasks.Analysis.AnalysisTask.CreateTaskReport(AnalysisTaskReport report, WordCounts batchTotalWordCounts)
       en Sdl.ProjectApi.AutomaticTasks.Tasks.Analysis.AnalysisTask.TaskComplete()
       en Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskComplete()]]></StackTrace>
          <InnerException>
            <Type>System.IO.DirectoryNotFoundException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
            <HelpLink />
            <Source>mscorlib</Source>
            <HResult>-2147024893</HResult>
            <StackTrace><![CDATA[   en System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       en System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       en System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       en System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
       en System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
       en System.IO.StreamWriter..ctor(String path, Boolean append)
       en System.IO.File.CreateText(String path)
       en Sdl.ProjectApi.Implementation.Repositories.ReportRepository.SetReportXml(String reportXml)
       en Sdl.ProjectApi.Implementation.ScheduledTask.AddReport(ITaskTemplate taskTemplate, String name, String description, String data, ILanguageDirection languageDirection, Boolean isCustomReport)]]></StackTrace>
          </InnerException>
        </InnerException>
      </Exception>
      <Environment>
        <ProductName>Trados Studio</ProductName>
        <ProductVersion>Studio16</ProductVersion>
        <EntryAssemblyFileVersion>16.2.9.9198</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>3082</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>MSI\María</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>MSI</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>16652728 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    emoji
Reply
  • Good morning, Oana!

    Thank you very much for your quick and really useful reply. 

    I’ve followed your suggestions and I’ve already found what was causing the problem. 

    When I’ve clicked on the icon for “display error details” it said: “Could not find a part of the path:…”

    It turns out that the path was too long. I’ve renamed the file with a shorter name and the problem has been solved. TRADOS analyses the file and creates the report correctly.

    I’ve also clicked on the disc icon and, even if I don’t quite understand the “code”, I think it says something like “DirectoryNotFoundException” and there are also mentions to the “path”. I attach it here anyway.

    Thanks a lot for your help!

    You’ve solved my problem, and now I know a bit more about how to deal with “errors” and how to provide relevant information to the Community if necessary Blush

    <SDLErrorDetails time="11/02/2022 8:42:10">
      <ErrorMessage>Unexpected exception when completing task 'Analizar archivos': Error al crear el informe..</ErrorMessage>
      <Exception>
        <Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=16.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
        <HelpLink />
        <Source>Sdl.ProjectApi.Implementation</Source>
        <HResult>-2146233088</HResult>
        <StackTrace><![CDATA[   en Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskComplete()
       en Sdl.ProjectApi.Implementation.AutomaticTaskExecuter.Execute()]]></StackTrace>
        <InnerException>
          <Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=16.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
          <HelpLink />
          <Source>Sdl.ProjectApi.Implementation</Source>
          <HResult>-2146233088</HResult>
          <StackTrace><![CDATA[   en Sdl.ProjectApi.Implementation.ScheduledTask.AddReport(ITaskTemplate taskTemplate, String name, String description, String data, ILanguageDirection languageDirection, Boolean isCustomReport)
       en Sdl.ProjectApi.Implementation.ExecutingAutomaticTask.CreateReport(ITaskTemplate taskTemplate, String name, String description, String data, ILanguageDirection languageDirection)
       en Sdl.ProjectApi.AutomaticTasks.Tasks.Analysis.AnalysisTask.CreateTaskReport(AnalysisTaskReport report, WordCounts batchTotalWordCounts)
       en Sdl.ProjectApi.AutomaticTasks.Tasks.Analysis.AnalysisTask.TaskComplete()
       en Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskComplete()]]></StackTrace>
          <InnerException>
            <Type>System.IO.DirectoryNotFoundException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
            <HelpLink />
            <Source>mscorlib</Source>
            <HResult>-2147024893</HResult>
            <StackTrace><![CDATA[   en System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       en System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       en System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       en System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
       en System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
       en System.IO.StreamWriter..ctor(String path, Boolean append)
       en System.IO.File.CreateText(String path)
       en Sdl.ProjectApi.Implementation.Repositories.ReportRepository.SetReportXml(String reportXml)
       en Sdl.ProjectApi.Implementation.ScheduledTask.AddReport(ITaskTemplate taskTemplate, String name, String description, String data, ILanguageDirection languageDirection, Boolean isCustomReport)]]></StackTrace>
          </InnerException>
        </InnerException>
      </Exception>
      <Environment>
        <ProductName>Trados Studio</ProductName>
        <ProductVersion>Studio16</ProductVersion>
        <EntryAssemblyFileVersion>16.2.9.9198</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>3082</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>MSI\María</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>MSI</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>16652728 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    emoji
Children
No Data