diff --git a/src/MigrationTools.Clients.AzureDevops.ObjectModel/Endpoints/TfsWorkItemConvertor.cs b/src/MigrationTools.Clients.AzureDevops.ObjectModel/Endpoints/TfsWorkItemConvertor.cs index 3448dfda0..eff79852a 100644 --- a/src/MigrationTools.Clients.AzureDevops.ObjectModel/Endpoints/TfsWorkItemConvertor.cs +++ b/src/MigrationTools.Clients.AzureDevops.ObjectModel/Endpoints/TfsWorkItemConvertor.cs @@ -60,7 +60,7 @@ private SortedDictionary GetRevisionItems(RevisionCollection } catch (ArgumentException e) { - Log.Warning(e, "For some Reason there are multiple Revisions on {WorkItemId} with the same System.Rev. We will create a renumbered list...", items[0].WorkItemId); + Log.Warning("For some Reason there are multiple Revisions on {WorkItemId} with the same System.Rev. We will create a renumbered list...", items[0].WorkItemId); var currentNumber = -1; foreach (var item in items) { diff --git a/src/VstsSyncMigrator.Core/Execution/MigrationContext/WorkItemMigrationContext.cs b/src/VstsSyncMigrator.Core/Execution/MigrationContext/WorkItemMigrationContext.cs index d36f7fc5d..d7bd7e89e 100644 --- a/src/VstsSyncMigrator.Core/Execution/MigrationContext/WorkItemMigrationContext.cs +++ b/src/VstsSyncMigrator.Core/Execution/MigrationContext/WorkItemMigrationContext.cs @@ -910,7 +910,7 @@ private WorkItemData ReplayRevisions(List revisionsToMigrate, Work if (targetWorkItem != null) { foreach (Field f in targetWorkItem.ToWorkItem().Fields) - parameters.Add($"{f.ReferenceName} ({f.Name})", f.Value.ToString()); + parameters.Add($"{f.ReferenceName} ({f.Name})", f.Value?.ToString()); } _telemetry.TrackException(ex, parameters); TraceWriteLine(LogEventLevel.Information, "...FAILED to Save");