title: FetchXML Return 0 records while running using C# Console Application
body: <p>I've below code snippet when I run this through <strong>FetchXml Tester</strong>, I get one record in result which is correct. But when I run it using C# Console application it return 0 records. Any idea what is missing in code set up?</p>
  
  <pre><code>var query = "&lt;fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true' &gt;"+
  "    &lt;entity name='new_paymentplanlist' &gt;"+
  "        &lt;attribute name='new_paymentplanlistid' /&gt;"+
  "        &lt;attribute name='new_event' /&gt;"+
  "        &lt;link-entity name='new_paymentplankit' from='new_paymentplankitlistid' to='new_paymentplanlistid' link-type='inner' alias='ag' &gt;"+
  "            &lt;filter type='and' &gt;"+
  "                &lt;condition attribute='new_paymentplankitid' operator='eq' value='"+kitID+"' /&gt;"+
  "            &lt;/filter&gt;"+
  "            &lt;link-entity name='new_paymentplan' from='new_paymentplanscheduleid' to='new_paymentplankitid' link-type='inner' alias='ah' &gt;"+
  "                &lt;filter type='and' &gt;"+
  "                    &lt;condition attribute='new_paymentplanid' operator='eq' value='"+planID+"' /&gt;"+
  "                &lt;/filter&gt;"+
  "            &lt;/link-entity&gt;"+
  "        &lt;/link-entity&gt;"+
  "    &lt;/entity&gt;"+
  "&lt;/fetch&gt;";
  
  EntityCollection paymentPlanList = service.RetrieveMultiple(new FetchExpression(query));
  if (paymentPlanList.Entities.Count&lt;1)
                  {
                      Console.WriteLine("No Payment Plan List found");
                      return;
                  }
  </code></pre>