Problem scanning drone folder - Error occurred while executing task DownloadedEpisodesScan

Sonarr version (exact version): v2.0.0.4323
OS: Windows 2012 R2
((Debug logs)):
[v2.0.0.4323] System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
at NzbDrone.Core.Tv.SeriesRepository.FindByTitle(String cleanTitle) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Tv\SeriesRepository.cs:line 33
at NzbDrone.Core.Tv.SeriesService.FindByTitle(String title) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Tv\SeriesService.cs:line 109
at NzbDrone.Core.Parser.ParsingService.GetSeries(String title) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Parser\ParsingService.cs:line 101
at NzbDrone.Core.MediaFiles.DownloadedEpisodesImportService.ProcessFolder(DirectoryInfo directoryInfo, DownloadClientItem downloadClientItem) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\DownloadedEpisodesImportService.cs:line 139
at NzbDrone.Core.MediaFiles.DownloadedEpisodesImportService.ProcessRootFolder(DirectoryInfo directoryInfo) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\DownloadedEpisodesImportService.cs:line 59
at NzbDrone.Core.MediaFiles.DownloadedEpisodesCommandService.ProcessDroneFactoryFolder() in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\DownloadedEpisodesCommandService.cs:line 54
at NzbDrone.Core.MediaFiles.DownloadedEpisodesCommandService.Execute(DownloadedEpisodesScanCommand message) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\DownloadedEpisodesCommandService.cs:line 92
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand](TCommand command, CommandModel commandModel) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 91
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommands() in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 41
Description of issue: Get this error when scanning drone factory folder

1 Like

Please post the full debug log (to hastebin/pastebin or a similar service) as requested when you opened this thread so we can see which file was being processed.

Based on the error there are two series with similar titles that Sonarr has the same “clean title” for. The clean title is the title with punctuation, spaces, some numbers and common words and converted to lower case.

1 Like

You were right, there were two entries for the same TV show (one that went to a 404 page). I’ve removed the broken one and it’s working fine now.

Thanks!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.