title: A column named ColumnOrdinal already belongs to the data table
body: <p>Sometimes my code catches below exception but I am unable to find the reason. It happens randomly and if I make a second call to the API, the error goes away and data is fetched fine.</p>
  
  <blockquote>
    <p>System.Data.DuplicateNameException: 'A column named 'ColumnOrdinal' already belongs to this DataTable.'</p>
  </blockquote>
  
  <p>Below is the code sample. Is there something which is causing repetitiveness? Also, I searched whole code but there is no column with the name ColumnOrdinal in the whole solution.</p>
  
  <pre><code>public static List&lt;Users&gt; GetUsersList()
  {
      try
      {
          List&lt;Users&gt; allUsers = null;
          DataTable dtResult = Data.GetUserList();
          if (dtResult != null)
          {
              allUsers = new List&lt;Users&gt;(dtResult.Rows.Count);
              Users oneUser;
  
              foreach (DataRow row in dtResult.Rows)
              {
                  oneUser = new Users()
                  {
                      userId = Convert.ToInt32(row["USER_ID"]),
                      userName = Convert.ToString(row["USER_NAME"]),                          
  
                  };
                  allUsers.Add(oneUser);
              };
          }
          return allUsers;
      }
      catch (Exception ex)
      {
          throw ex;
      }
  }
  </code></pre>