Error "unexpected exception when completing task "Analyse": invalid number of analysis bands."

Hi everyone,

one of my clients is currently experiencing an issue when creating a project package that is unknown to me. He receives an error message saying "unexpected exception when completing task "Analyse": invalid number of analysis bands." I have already checked and made sure that the project settings / fuzzy band split were fine, but the error seems to be caused by something else.  Has anyone else experienced the same issue or can tell me how to resolve it?

Thanks a lot in advance,
Luisa

Parents Reply Children
  • Hi Luisa,

    I think Support is the best option now based on your findings. Nothing obvious springs to mind so it makes sense for support to take a better look.

    Regards

    Paul

    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

  • For what it's worth, I start getting this error mysteriously in my PowerShell Toolkit based automation when I add progress/messages event handler to my Analyze task (called using "FileBasedProject.RunAutomaticTask" method).

    Running pre-translation / analysis tasks...
    Error: Unexpected exception when completing task 'Analyze Files': Invalid number of analysis bands.
    Sdl.ProjectAutomation.Core.ProjectAutomationException: Unexpected exception when completing task 'Analyze Files': Invalid number of analysis bands. ---> Sdl.ProjectApi.ProjectApiException: Unexpected exception when completing task 'Analyze Files': Invalid number of analysis bands. ---> System.ArgumentException: Invalid number of analysis bands
       at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisTask.SetAnalysisWordCounts(AnalysisContentProcessorX processor, ITranslatableFile translatableFile, WordCounts newWordCounts)
       at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisTask.UpdateFileAnalysisStatistics(AnalysisContentProcessorX processor)
       at Sdl.ProjectApi.AutomaticTasks.Analysis.AnalysisTask.TaskComplete()
       at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskComplete()
       --- End of inner exception stack trace ---
       at Sdl.ProjectApi.Implementation.TaskExecution.ContentProcessingTaskImplementation.TaskComplete()
       at Sdl.ProjectApi.Implementation.AutomaticTaskExecuter.Execute()
       --- End of inner exception stack trace ---
    Task Analyze Files not completed.
    Unexpected exception when completing task 'Analyze Files': Invalid number of analysis bands.

    When I remove the event handler from the RunAutomaticTask call (and that's the ONLY change in the script!), everything works just fine (analysis reports are created and contain correct data):

    Running pre-translation / analysis tasks...
    Task Analyze Files successfully completed.
  • Hello Evzen,

    You need to post this into the developer forum. I don't know enough about this to comment at all.

    Regards

    Paul

    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