title: Why do i always get The property or field has not been initialized?
body: <p>Hello i try to populate an Array with specific fields. But i always get: <code>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.</code> I am on Sharepoint 2013 and i use the internal names from sharepoint. I assume that there is something wrong with my Caml Query. </p>
  
  <p>Here is the Code i use:</p>
  
  <pre><code> function retrieveListItems(siteUrl) {
  
          var clientContext = new SP.ClientContext(siteUrl);
          var oList = clientContext.get_web().get_lists().getByTitle('MatrixFiles');
  
          var camlQuery = new SP.CamlQuery();
          camlQuery.set_viewXml('&lt;View&gt;&lt;ViewFields&gt;&lt;FieldRef Name="LinkFilename" /&gt;&lt;FieldRef Name="WebCountry" /&gt;&lt;FieldRef Name="WebDepartment" /&gt;&lt;FieldRef Name="FileLeafRef" /&gt;&lt;/ViewFields&gt;&lt;Query&gt;&lt;OrderBy&gt;&lt;FieldRef Name="LinkFilename" /&gt;&lt;/OrderBy&gt;&lt;/Query&gt;&lt;/View&gt;');
          this.collListItem = oList.getItems(camlQuery);
  
          clientContext.load(collListItem);
  
          clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
  
      }
  </code></pre>
  
  <p>And here the other part with the array:</p>
  
  <pre><code>function onQuerySucceeded(sender, args) {
  
      var listItemInfo = '';
      var array = [];
  
      var listItemEnumerator = this.collListItem.getEnumerator();
  
      while (listItemEnumerator.moveNext()) {
          var oListItem = listItemEnumerator.get_current();
          console.log(oListItem);
  
          array.push(oListItem);
  
  
  
      }
  
      alert(oListItem.get_item('LinkFilename'));
  
  
  }
  </code></pre>
  
  <p>The strange thing is the array gets filled with SPListItems but when i try to use a specific field in an alert the error happens. No clue why....</p>
  
  <p>Any help would be great and thx for your Time.</p>
  
  <p>BTW i used the <a href="https://spcamlqueryhelper.codeplex.com/" rel="nofollow">SP Caml Query helper</a> for this.</p>