title: Iterating an AX 4 Container getting out of range error
body: <p>I am trying to iterate an AX container using the BuisnessConnector. However I get an index out of range exception on the below code, even though the container returns a count of 4. This happens on the first iteration of the loop.</p>
  
  <pre><code>            AxaptaContainer path = (AxaptaContainer)ax.CallStaticClassMethod("DocumentHandling", "ItemData", "1000000");
              for (int i = 0; i &lt; path.Count; i++)
              {
                  string somestring = path.get_Item(i).ToString();
              }
  </code></pre>
  
  <p>I am using AX 4 for this.</p>