diff --git a/src/MigrationTools.Clients.AzureDevops.ObjectModel.Tests/Endpoints/TfsWorkItemEndPointTests.cs b/src/MigrationTools.Clients.AzureDevops.ObjectModel.Tests/Endpoints/TfsWorkItemEndPointTests.cs index 5ebae09db..704ef7190 100644 --- a/src/MigrationTools.Clients.AzureDevops.ObjectModel.Tests/Endpoints/TfsWorkItemEndPointTests.cs +++ b/src/MigrationTools.Clients.AzureDevops.ObjectModel.Tests/Endpoints/TfsWorkItemEndPointTests.cs @@ -42,7 +42,7 @@ public void TfsWorkItemEndPointGetWorkItemsTest() var endpoint = Services.GetRequiredService(); endpoint.Configure(GetTfsWorkItemEndPointOptions("migrationSource1")); IEnumerable result = endpoint.GetWorkItems(); - Assert.AreEqual(11, result.Count()); + Assert.AreEqual(12, result.Count()); } [TestMethod(), TestCategory("L3"), TestCategory("AzureDevOps.ObjectModel")] @@ -56,7 +56,7 @@ public void TfsWorkItemEndPointGetWorkItemsQueryTest() Parameters = new Dictionary() { { "TeamProject", "migrationSource1" } } }; IEnumerable result = endpoint.GetWorkItems(qo); - Assert.AreEqual(11, result.Count()); + Assert.AreEqual(12, result.Count()); } private static TfsWorkItemEndpointOptions GetTfsWorkItemEndPointOptions(string project) diff --git a/src/MigrationTools.Clients.AzureDevops.ObjectModel/_Enginev1/Clients/TfsWorkItemQuery.cs b/src/MigrationTools.Clients.AzureDevops.ObjectModel/_Enginev1/Clients/TfsWorkItemQuery.cs index 805d51221..cd4188993 100644 --- a/src/MigrationTools.Clients.AzureDevops.ObjectModel/_Enginev1/Clients/TfsWorkItemQuery.cs +++ b/src/MigrationTools.Clients.AzureDevops.ObjectModel/_Enginev1/Clients/TfsWorkItemQuery.cs @@ -65,14 +65,8 @@ private IList GetWorkItemsFromQuery(TfsWorkItemMigrationClient wiClien } catch (DeniedOrNotExistException ex) { - if (ex.InnerException is WorkItemTypeDeniedOrNotExistException) - { - Log.Warning(ex, "The Work Item {id} has a Work Item Type that is in its histroy that has been subsiquently deleted! It will not be posible to migrate this item untill this has been resovled", id); - } else - { - Log.Warning(ex, "The Work Item {id} cant be accessed and returned a DeniedOrNotExistException! The specific error will be listed below.", id); - } - + + Log.Warning(ex, "The Work Item {id} cant be accessed for some reason and returned a DeniedOrNotExistException! The specific error will be listed below.", id); Telemetry.TrackException(ex, new Dictionary {