Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-2056

TFS Connector - Story syncs can fail when empty fields are encountered

XMLWordPrintable

    • 1
    • Severity 2 - Major
    • Party Parrots - TART6

      Issue Summary

      An issue has been discovered where stories can fail to sync between an Azure DevOps environment and Jira Align.

      The problem is due an error reading from the AgileCraft database.

      Steps to Reproduce

      1. Jira Align TFS connector configured to communicate with an Azure DevOps environment
      2. The connector attempts to run its normal sync of stories.

      Expected Results

      Stories should should sync without issue.

      Actual Results

      Stories fail to sync.

      The below exception is recorded in the Splunk log.
      This occurs when we are trying to read a range of stories from our database and instantiate them into objects. There's a field for at least one of them that's null that's not supposed to be null, but the error doesn't provide information on which story we are having trouble with because in this case we're reading them in in a big array instead of one at a time.

      System.InvalidOperationException: Nullable object must have a value.
         at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
         at lambda_method(Closure , Story )
         at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
         at System.Linq.Enumerable.<UnionIterator>d__67`1.MoveNext()
         at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
         at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
         at AgileCraft.Integration.Tfs.Core.WorkItemSyncManager.GetStoriesFromAgileCraft(List`1 externalIds) in C:\projects\awesomesauce-mlaxn\AgileCraft\Connectors\TFS\AgileCraft.Integration.Tfs.Core\SyncManagers\WorkItemSyncManager.cs:line 3466
         at AgileCraft.Integration.Tfs.Core.WorkItemSyncManager.SyncStories(TfsProject project, Nullable`1 startDate) in C:\projects\awesomesauce-mlaxn\AgileCraft\Connectors\TFS\AgileCraft.Integration.Tfs.Core\SyncManagers\WorkItemSyncManager.cs:line 3355
         at AgileCraft.Integration.Tfs.Core.WorkItemSyncManager.SyncWorkItems(TfsProject project) in C:\projects\awesomesauce-mlaxn\AgileCraft\Connectors\TFS\AgileCraft.Integration.Tfs.Core\SyncManagers\WorkItemSyncManager.cs:line 3643
         at AgileCraft.Integration.Tfs.Core.WorkItemSyncManager.SyncAllProjectWorkItems(LastSyncManager lastSyncManager) in C:\projects\awesomesauce-mlaxn\AgileCraft\Connectors\TFS\AgileCraft.Integration.Tfs.Core\SyncManagers\WorkItemSyncManager.cs:line 178
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            kforeman@atlassian.com Kyle Foreman
            kbaxley Kent Baxley
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: