title: DataTables warning: table id=incomeDataTable - Ajax error. For more information about this error, please see http://datatables.net/tn/7
body: <p>I am bit new in ASP .Net MVC and still on learning mode. I am getting this error after leaving the controller. Tried to find the solution on this forum but unfortunately none of them are helping.
  My Code is as under:</p>
  <p><strong>Model:</strong></p>
  <pre><code>namespace TestHRMS3SIS.Models
  {
      using System;
      using System.Collections.Generic;
      
      public partial class T11922H01
      {
          public int PMITHUniqueId { get; set; }
          public string PMITHIncomeId { get; set; }
          public string PMITHIncomeIdK { get; set; }
          public string PMITHDesc1 { get; set; }
          public string PMITHDesc2 { get; set; }
          public bool PMITHIsTaxable { get; set; }
          public string PMITHRuleId { get; set; }
          public Nullable&lt;decimal&gt; PMITHRentExemptPercent { get; set; }
          public Nullable&lt;decimal&gt; PMITHRentCityPercent { get; set; }
          public string PMITHIncomeCycle { get; set; }
          public byte PMITHPrintingSeq { get; set; }
          public string PMITHRoundingStrategy { get; set; }
          public Nullable&lt;int&gt; PMITHBICode { get; set; }
          public string PMITHBIDesc { get; set; }
          public int PMITHMarkForDeletion { get; set; }
          public string PMITHUser { get; set; }
          public System.DateTime PMITHDateTime { get; set; }
      
          public virtual T11922F01 T11922F01 { get; set; }
      }
  }
  </code></pre>
  <p><strong>View</strong></p>
  <pre><code>@{
      ViewBag.Title = &quot;Income List&quot;;
  }
  
  &lt;h2&gt;Income List New&lt;/h2&gt;
  
  &lt;table id=&quot;incomeDataTable&quot;&gt;
      &lt;thead&gt;enter code here
          &lt;tr&gt;
              &lt;th&gt;IncomeId&lt;/th&gt;
              &lt;th&gt;Dsc1&lt;/th&gt;
              &lt;th&gt;Desc2&lt;/th&gt;
              &lt;th&gt;RuleId&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
  &lt;/table&gt;
  &lt;link href=&quot;//cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css&quot; rel=&quot;stylesheet&quot; /&gt;
  @section scripts
  {
      &lt;script src=&quot;//cdn.datatables.net/1.10.24/js/jquery.dataTables.min.js&quot;&gt;&lt;/script&gt;
      &lt;script&gt;
          $(document).ready(function () {
              $(&quot;#incomeDataTable&quot;).DataTable(
                  {
                      &quot;processing&quot;: true,
                      &quot;serverSide&quot;: true,
                      &quot;ajax&quot;: {
                          &quot;url&quot;: &quot;/DataTableTest/GetIncomeList&quot;,
                          &quot;type&quot;: &quot;GET&quot;,
                          &quot;datatype&quot;: &quot;json&quot;
                      },
                      &quot;columns&quot;: [
                          { &quot;data&quot;: &quot;PMITHIncomeId&quot; },
                          { &quot;data&quot;: &quot;PMITHDesc1&quot; },
                          { &quot;data&quot;: &quot;PMITHDesc2&quot; },
                          { &quot;data&quot;: &quot;PMITHRuleId&quot; }
                      ]
                  });
          });
      &lt;/script&gt;
  }
  </code></pre>
  <p><strong>Controller</strong></p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  using TestHRMS3SIS.Models;
  
  namespace TestHRMS3SIS.Controllers.DataTableTest
  {
      public class DataTableTestController : Controller
      {
          // GET: DataTable
          public ActionResult Index()
          {
              return View();
          }
          public ActionResult GetIncomeList()
          {
              using (Entities3SIS oDbConnection = new Entities3SIS())
              {
                  var oT11922H01 = oDbConnection.T11922H01.ToList&lt;T11922H01&gt;();
                  return Json(new { data = oT11922H01 }, JsonRequestBehavior.AllowGet);                
              }
  
          }
      }
  }
  </code></pre>
  <p>I have put a break point in controller and observed that on return statement I am getting this error.</p>
  <p>Any help is appreciated.</p>