Commit e9ea86d
authored
Bug fix for lame FieldDefinitionNotExistException (#2626)
🐛 (TfsWorkItemMigrationProcessor.cs): handle
FieldDefinitionNotExistException when setting ClosedDate field
Wraps the assignment of the "ClosedDate" field in a try-catch block to
handle the FieldDefinitionNotExistException. This change prevents the
application from crashing when the field definition does not exist,
which can occur due to inconsistencies in the TFS API. The exception is
caught and ignored to ensure the migration process continues smoothly.
Co-Authored: @anderssonpofFile tree
1 file changed
+9
-2
lines changed- src/MigrationTools.Clients.TfsObjectModel/Processors
1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
428 | 435 | | |
429 | 436 | | |
430 | 437 | | |
| |||
0 commit comments