title: Sharepoint field has not been initialized in C#
body: <p>I'm writing a code that will go through every list item in a sharepoint list and look for an empty field. If an empty field is found, the person responsible for the list item is notified by email.</p>
  
  <p>I'm getting an error at the line <code>val = oListItem[field.Title];</code> which states </p>
  
  <blockquote>
    <p>The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.</p>
  </blockquote>
  
  <p>It seems to me that I have initialized everything before that line. </p>
  
  <pre><code>static void Main()
  {
      ClientContext context    = new ClientContext("https://****");
      context.Credentials      = new NetworkCredential("****", "****");
      List oList               = context.Web.Lists.GetByTitle("TestBI");
      FieldCollection fieldcol = oList.Fields;
  
      context.Load(oList);
      context.Load(fieldcol);
      context.ExecuteQuery();
  
      ListItem oListItem = oList.GetItemById(1);
      object val = null;
  
      for (int i = 1; i &lt;= 4; i++)
      {
          oListItem = oList.GetItemById(i);
          foreach (Field field in fieldcol)
          {
              val = oListItem[field.Title];
              if(val == null)
              {
                  //Send e-mail
              }
          }
      }
      context.ExecuteQuery();
  }
  </code></pre>