Problem adding series

Sonarr version (exact version): 2.0.0.4689

Mono version (if Sonarr is not running on Windows): N/A

OS: Windows 2012 R2

((Debug logs)): NzbDroneErrorPipeline
Request Failed. POST /api/series: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at NzbDrone.Core.Tv.SeriesTitleSlugValidator.<>c__DisplayClass2_0.b__0(Series s) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Tv\SeriesTitleSlugValidator.cs:line 22
at System.Collections.Generic.List1.FindIndex(Int32 startIndex, Int32 count, Predicate1 match)
at NzbDrone.Core.Tv.SeriesTitleSlugValidator.IsValid(PropertyValidatorContext context) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Tv\SeriesTitleSlugValidator.cs:line 22
at FluentValidation.Validators.PropertyValidator.Validate(PropertyValidatorContext context) in C:\projects\FluentValidation\src\FluentValidation\Validators\PropertyValidator.cs:line 79
at FluentValidation.Internal.PropertyRule.InvokePropertyValidator(ValidationContext context, IPropertyValidator validator, String propertyName) in C:\projects\FluentValidation\src\FluentValidation\Internal\PropertyRule.cs:line 368
at FluentValidation.Internal.PropertyRule.d__60.MoveNext() in C:\projects\FluentValidation\src\FluentValidation\Internal\PropertyRule.cs:line 242
at System.Linq.Enumerable.d__162.MoveNext() at System.Collections.Generic.List1…ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at FluentValidation.AbstractValidator1.Validate(ValidationContext1 context) in C:\projects\FluentValidation\src\FluentValidation\AbstractValidator.cs:line 114
at FluentValidation.AbstractValidator1.Validate(T instance) in C:\projects\FluentValidation\src\FluentValidation\AbstractValidator.cs:line 95 at NzbDrone.Core.Tv.AddSeriesService.AddSeries(Series newSeries) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Tv\AddSeriesService.cs:line 58 at NzbDrone.Api.Series.SeriesModule.AddSeries(SeriesResource seriesResource) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Api\Series\SeriesModule.cs:line 119 at NzbDrone.Api.REST.RestModule1.<set_CreateResource>b__41_0(Object options) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Api\REST\RestModule.cs:line 155
at CallSite.Target(Closure , CallSite , Func`2 , Object )
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)

Description of issue: Can’t add new series, see single error in log above.

Have you used PlexRequests in the past?

Yes, and I still am.

Ok, In the early days there was a problem with the interaction between PlexRequests and Sonarr causing certain series to be added to the database without the title-slug (For the Series ‘My Fantastic Show’ the slug is ‘my-fantastic-show’), at least that’s our theory, coz in one or two versions back we fixed that.
This is causing conflicts, coz Sonarr is checking whether any series already exists with the same slug, but fails when it runs into a series without any slug at all.
Usually the affected series have been removed from tvdb, otherwise Sonarr would have repaired it during the periodic Update Library/Series Refresh.

Check System->Logs for any errors like:

Series ‘My Fantastic Show’ (tvdbid 12345) was not found, it may have been removed from TheTVDB.`

Now, you can remove the corrupted show, but you cannot enter the series overview page, instead you have to use the series table with the small wrench icon, to get to the series details with the Delete button:

Alternatively you could simply check the sqlite database that Sonarr stores it’s data in.

1 Like

Perfect, browsed the series table in the SQLite DB and found three entries that had no slug… removed them via the gui using the method you suggested and I’m now able to add series. Thanks so much!

You’re welcome.

I’m curious, do you remember when and how you added those series? Just trying to confirm the theory.

Sorry, my logs don’t go far back enough, and I didn’t copy the DB before I applied the changes through the GUI but I’m 99% sure they were done through PlexRequests.

FYI, I have also recently experienced the same issue. I deleted series from the DB that had a null “slug” entry and this resolved the issue

Hi, I am experiencing the same issue. I added a show via plex requests and see this in the logs: Request Failed. POST /api/series: Object reference not set to an instance of an object.

I do NOT see this in the logs

Series 'My Fantastic Show' (tvdbid 12345) was not found, it may have been removed from TheTVDB.`

I also cannot find the series when browsing the series table. I cannot manually add the series either.

Thanks.

You wouldn’t see that series unless you previously added it, there is likely another series with that issue, refreshing all series and looking at the logs for it may have been removed from TheTVDB should indicate which series it is.

Thanks, that did it. Two shows that were no longer valid.

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